mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
11 lines
409 B
Bash
11 lines
409 B
Bash
|
sudo sh -c 'echo "POSTGRESQL=-YES-" >> /etc/hostconfig'
|
||
|
sudo mkdir /Library/StartupItems/PostgreSQL
|
||
|
sudo cp PostgreSQL /Library/StartupItems/PostgreSQL
|
||
|
sudo cp StartupParameters.plist /Library/StartupItems/PostgreSQL
|
||
|
if [ -e /Library/StartupItems/PostgreSQL/PostgreSQL ]
|
||
|
then
|
||
|
echo "Startup Item Installed Successfully . . . "
|
||
|
echo "Starting PostgreSQL Server . . . "
|
||
|
SystemStarter restart PostgreSQL
|
||
|
fi
|