Mercurial Hosting > luan
comparison host/startupScripts.sh @ 1632:0344a535b1db
add doc
author | fffilimonov |
---|---|
date | Tue, 14 Dec 2021 07:41:01 +0000 |
parents | 35c626c06dd5 |
children |
comparison
equal
deleted
inserted
replaced
1631:35c626c06dd5 | 1632:0344a535b1db |
---|---|
3 | 3 |
4 user=$(whoami); | 4 user=$(whoami); |
5 | 5 |
6 systemStarup='/Library/LaunchDaemons'; | 6 systemStarup='/Library/LaunchDaemons'; |
7 localStartup=${ROOTPWD}'/local/startup'; | 7 localStartup=${ROOTPWD}'/local/startup'; |
8 startup=${ROOTPWD}'/startup'; | 8 startup=${ROOTPWD}'/startup/macos'; |
9 startupPostgres=${ROOTPWD}'/startup/postgres/macos'; | |
9 | 10 |
10 SLAVE_IP=$(dig +short "test.luan.software"); | 11 function addStartup() { |
11 | 12 cd $localStartup; |
12 function cleanUp() { | 13 for file in *.plist; do |
13 find $localStartup -type f \( -name "*.plist" \) -delete; | 14 sudo ln -sf ${localStartup}/${file} ${systemStarup}/${file}; |
15 sudo chown root:wheel ${localStartup}/${file}; | |
16 done; | |
14 } | 17 } |