updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / firebird-superserver / firebird-superserver.install
blob64bb4bd6e6c2e4e02a0f38f816192aa04c1d8d2a
1 post_install() {
2   echo "> Check /opt/firebird/SYSDBA.password for default login credentials!"
3   echo "> You should change this password at the earliest oportunity!"
5   # Add firebird user/group
6   getent group firebird &> /dev/null || groupadd -g 184 -r firebird
7   getent passwd firebird &> /dev/null || useradd -u 184 -r -M -d /opt/firebird -s /bin/false -c "Firebird Database Owner" -g firebird firebird
9   chown firebird.firebird opt/firebird/{fb_guard,firebird.log,security2.fdb,examples/empbuild/*.fdb}
12 post_upgrade() {
13   post_install $1
16 post_remove() {
17   # Remove firebird user/group
18   getent passwd firebird &> /dev/null && userdel firebird &> /dev/null
19   getent group firebird &> /dev/null && groupdel firebird &> /dev/null || true
22 # vim:set ts=2 sw=2 et: