comparison host/macos/startupScripts.sh @ 1635:fd3d56f39450

rearrange startup files
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 14 Dec 2021 18:50:43 -0700
parents host/startupScripts.sh@0344a535b1db
children 6378d261136e
comparison
equal deleted inserted replaced
1634:894d9069c792 1635:fd3d56f39450
1 cd ..
2 ROOTPWD=$(pwd);
3 IP=$(ifconfig en0 | awk '{if($0~"inet "){print $2}}');
4
5 user=$(whoami);
6
7 systemStarup='/Library/LaunchDaemons';
8 localStartup=${ROOTPWD}'/local/startup';
9 startup=${ROOTPWD}'/macos';
10 startupPostgres=${ROOTPWD}'/macos/postgres';
11
12 function addStartup() {
13 cd $localStartup;
14 for file in *.plist; do
15 sudo ln -sf ${localStartup}/${file} ${systemStarup}/${file};
16 sudo chown root:wheel ${localStartup}/${file};
17 done;
18 }