Package postgresql11-1C-server: Скрипты

Post install

1
2
3
4
5
6
7
8
9
echo PGLIB=/usr/share/pgsql >> ~postgres/.bash_profile
echo PGDATA=/var/lib/pgsql/data >> ~postgres/.bash_profile
echo export PGLIB PGDATA >> ~postgres/.bash_profile
chown postgres:postgres ~postgres/.bash_profile

SYSLOGD_SCRIPT=/etc/init.d/syslogd
SYSLOGD_CONFIG=/etc/sysconfig/syslogd

/usr/sbin/post_service postgresql
Pre install

exec &>/dev/null

if [ $1 -gt 1 ]
then
   if [ ! -d /usr/lib64/pgsql/backup ]; then
       mkdir -p /usr/lib64/pgsql/backup
   fi
   cd /usr/bin
   cp -fp postmaster postgres /usr/lib64/pgsql/backup
fi
Pre uninstall

/usr/sbin/preun_service postgresql