Package postgresql-common: Scripts

Post install

1
2
3
4
5
6
7
if [ $1 -ge 2 ]; then 
	/usr/sbin/control-restore  
else 
	for facility in ; do 
		/usr/sbin/control "$facility" public 
	done 
fi
Pre install

exec &>/dev/null
/usr/sbin/groupadd -r psqluser ||:
/usr/sbin/groupadd -r -g 46 postgres \
	|| /usr/sbin/groupadd -r postgres \
	||:
/usr/sbin/useradd -M -o -r -d /var/lib/pgsql -s /dev/null \
	-c "PostgreSQL Server" -u 46 postgres -g postgres \
	|| /usr/sbin/useradd -M -o -r -d /var/lib/pgsql -s /dev/null \
	-c "PostgreSQL Server" postgres -g postgres \
	||:

if [ $1 -ge 2 ]; then 
	/usr/sbin/control-dump  
fi