diff options
author | Alex Dupre <ale@FreeBSD.org> | 2005-02-15 22:57:02 +0000 |
---|---|---|
committer | Alex Dupre <ale@FreeBSD.org> | 2005-02-15 22:57:02 +0000 |
commit | 110771c2d93c0e2d3bc93f91156fdaf1c5fa1574 (patch) | |
tree | 58141596e88167925961d2412bb021fc330a9d4d /databases/mysql41-server/pkg-install | |
parent | 502b9a2ca90d3be8cd25442cea22e4f8e273dbd5 (diff) | |
download | ports-110771c2d93c0e2d3bc93f91156fdaf1c5fa1574.tar.gz ports-110771c2d93c0e2d3bc93f91156fdaf1c5fa1574.zip |
Notes
Diffstat (limited to 'databases/mysql41-server/pkg-install')
-rw-r--r-- | databases/mysql41-server/pkg-install | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/databases/mysql41-server/pkg-install b/databases/mysql41-server/pkg-install index 88a0b1c66915..586f846c5031 100644 --- a/databases/mysql41-server/pkg-install +++ b/databases/mysql41-server/pkg-install @@ -8,7 +8,6 @@ POST-INSTALL) GROUP=${USER} UID=88 GID=${UID} - DB_DIR=%%DB_DIR%% if pw group show "${GROUP}" 2>/dev/null; then echo "You already have a group \"${GROUP}\", so I will use it." @@ -23,16 +22,9 @@ POST-INSTALL) if pw user show "${USER}" 2>/dev/null; then echo "You already have a user \"${USER}\", so I will use it." - if pw usermod ${USER} -d ${DB_DIR} - then - echo "Changed home directory of \"${USER}\" to \"${DB_DIR}\"" - else - echo "Changing home directory of \"${USER}\" to \"${DB_DIR}\" failed..." - exit 1 - fi else if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \ - -d ${DB_DIR} -s /sbin/nologin -c "MySQL Daemon" + -d /nonexistent -s /sbin/nologin -c "MySQL Daemon" then echo "Added user \"${USER}\"." else @@ -40,7 +32,5 @@ POST-INSTALL) exit 1 fi fi - - chown -R ${USER}:${GROUP} ${DB_DIR} ;; esac |