Mercurial Hosting > luan
diff host/startupScripts.sh @ 1632:0344a535b1db
add doc
author | fffilimonov |
---|---|
date | Tue, 14 Dec 2021 07:41:01 +0000 |
parents | 35c626c06dd5 |
children |
line wrap: on
line diff
--- a/host/startupScripts.sh Mon Dec 13 09:14:52 2021 +0000 +++ b/host/startupScripts.sh Tue Dec 14 07:41:01 2021 +0000 @@ -5,10 +5,13 @@ systemStarup='/Library/LaunchDaemons'; localStartup=${ROOTPWD}'/local/startup'; -startup=${ROOTPWD}'/startup'; - -SLAVE_IP=$(dig +short "test.luan.software"); +startup=${ROOTPWD}'/startup/macos'; +startupPostgres=${ROOTPWD}'/startup/postgres/macos'; -function cleanUp() { - find $localStartup -type f \( -name "*.plist" \) -delete; +function addStartup() { + cd $localStartup; + for file in *.plist; do + sudo ln -sf ${localStartup}/${file} ${systemStarup}/${file}; + sudo chown root:wheel ${localStartup}/${file}; + done; }