diff options
author | ale <ale@FreeBSD.org> | 2005-04-06 21:38:29 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2005-04-06 21:38:29 +0800 |
commit | f12aedb868cfb9ce2f3688fed0a7ce9eca65528e (patch) | |
tree | 6a5a6df1e5193d006cd6d28c82097811542b75be /databases/percona55-server/pkg-install | |
parent | 5b07065e0a3afb1d80efa59a85b58f60cc8201bf (diff) | |
download | freebsd-ports-gnome-f12aedb868cfb9ce2f3688fed0a7ce9eca65528e.tar.gz freebsd-ports-gnome-f12aedb868cfb9ce2f3688fed0a7ce9eca65528e.tar.zst freebsd-ports-gnome-f12aedb868cfb9ce2f3688fed0a7ce9eca65528e.zip |
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
Diffstat (limited to 'databases/percona55-server/pkg-install')
-rw-r--r-- | databases/percona55-server/pkg-install | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/databases/percona55-server/pkg-install b/databases/percona55-server/pkg-install index 88a0b1c66915..586f846c5031 100644 --- a/databases/percona55-server/pkg-install +++ b/databases/percona55-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 |