aboutsummaryrefslogtreecommitdiff
path: root/contrib/start-scripts/osx/install.sh
blob: bbc5ee392651694e11fcc0017d8d700b192edff0 (plain)
1
2
3
4
5
6
7
8
9
10
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