Same setup as before, but with a different install command.
PostgreSQL refuses to install its service scripts into /etc/init.d/
; in fact, I can’t find them anywhere (find / -regex ".*postgres.*"
)
command => '/bin/mount -o remount exec /tmp ;
/bin/mkdir -m 0755 -p /opt/PostgreSQL/9.1 ;
/tmp/setup/postgres-9.1.4.run
--mode unattended
--superaccount postgres
--superpassword sUP34_se<uR3^P4sSw0rd
--datadir /opt/PostgreSQL/9.1/data ;
/usr/sbin/userdel postgres ; # for some reason, it does give itself (postgres)
# permissions to its own files, which causes problems with initdb
/bin/chmod 755 /opt/PostgreSQL/9.1 -R ; # so I nuke them all back to o=rwx,ug=rx
/tmp/setup/postgres-9.1.4.run
--mode unattended
--superaccount postgres
--superpassword sUP34_se<uR3^P4sSw0rd
--datadir /opt/PostgreSQL/9.1/data ;
/bin/mount -o remount /tmp ;
/bin/touch /tmp/mysetup/postgres_installed ; ',
Is there any way I can get these files into /etc/init.d
? Why won’t the installer place them here in the first place?
Unfortunately, it is unlikely that I can use a different version of PostgreSQL – 9.1.4 is the most recent version that has been ‘approved’.