diff options
author | Dirk Froemberg <dirk@FreeBSD.org> | 1999-08-11 20:56:03 +0000 |
---|---|---|
committer | Dirk Froemberg <dirk@FreeBSD.org> | 1999-08-11 20:56:03 +0000 |
commit | e1d84112f97ccf9fe8e38378c62366405cb2ed34 (patch) | |
tree | e73b487ca32a04cdae9a194110a5c14eb59acdb9 /databases/mysql41-server/pkg-install | |
parent | Update maintainers email address (diff) |
- introduce DB_DIR variable to specify database directory if
different from /var/db/mysql
(e. g. make DB_DIR=/export/databases/mysql install)
- put functionality of check_old_version into Makefile and remove
check_old_version (good bye, good old friend...)
Notes
Notes:
svn path=/head/; revision=20656
Diffstat (limited to 'databases/mysql41-server/pkg-install')
-rw-r--r-- | databases/mysql41-server/pkg-install | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/databases/mysql41-server/pkg-install b/databases/mysql41-server/pkg-install index 1c5dd869d825..3e925021ede1 100644 --- a/databases/mysql41-server/pkg-install +++ b/databases/mysql41-server/pkg-install @@ -1,6 +1,9 @@ #!/bin/sh -PATH=/usr/sbin +PATH=/bin:/usr/sbin +if [ -z "${DB_DIR}" ]; then + DB_DIR=/var/db/mysql +fi case $2 in POST-INSTALL) @@ -24,7 +27,7 @@ POST-INSTALL) echo "You already have a user \"${USER}\", so I will use it." else if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \ - -d /var/db/mysql -s /sbin/nologin -c "MySQL Daemon" + -d ${DB_DIR} -s /sbin/nologin -c "MySQL Daemon" then echo "Added user \"${USER}\"." else @@ -33,6 +36,6 @@ POST-INSTALL) fi fi - chown -R ${USER}.${GROUP} /var/db/mysql + chown -R ${USER}.${GROUP} ${DB_DIR} ;; esac |