summaryrefslogtreecommitdiff
path: root/databases/mysql54-server/pkg-install
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2005-04-06 13:38:29 +0000
committerAlex Dupre <ale@FreeBSD.org>2005-04-06 13:38:29 +0000
commitbd1e850d7249b66550078edcc36e27aa815d9a3b (patch)
tree0dadd99ae13da37b4847a12de40fb3f52fd8a84f /databases/mysql54-server/pkg-install
parentUpdate to 0.2.0. (diff)
Update to 5.0.3 release:
- Add the possibility to specify the database directory in rc.conf - Move database creation from post-install stage into startup script - Add the possibility to specify additional command-line arguments to be passed to mysqld_safe on startup
Notes
Notes: svn path=/head/; revision=132637
Diffstat (limited to 'databases/mysql54-server/pkg-install')
-rw-r--r--databases/mysql54-server/pkg-install12
1 files changed, 1 insertions, 11 deletions
diff --git a/databases/mysql54-server/pkg-install b/databases/mysql54-server/pkg-install
index 88a0b1c66915..586f846c5031 100644
--- a/databases/mysql54-server/pkg-install
+++ b/databases/mysql54-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