1631
|
1 ROOTPWD=$(pwd);
|
|
2 IP=$(ifconfig en0 | awk '{if($0~"inet "){print $2}}');
|
|
3
|
|
4 user=$(whoami);
|
|
5
|
|
6 systemStarup='/Library/LaunchDaemons';
|
|
7 localStartup=${ROOTPWD}'/local/startup';
|
1632
|
8 startup=${ROOTPWD}'/startup/macos';
|
|
9 startupPostgres=${ROOTPWD}'/startup/postgres/macos';
|
1631
|
10
|
1632
|
11 function addStartup() {
|
|
12 cd $localStartup;
|
|
13 for file in *.plist; do
|
|
14 sudo ln -sf ${localStartup}/${file} ${systemStarup}/${file};
|
|
15 sudo chown root:wheel ${localStartup}/${file};
|
|
16 done;
|
1631
|
17 }
|