annotate host/startupScripts.sh @ 1631:35c626c06dd5

add startup scripts for mac os
author fffilimonov
date Mon, 13 Dec 2021 09:14:52 +0000
parents
children 0344a535b1db
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1631
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
1 ROOTPWD=$(pwd);
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
2 IP=$(ifconfig en0 | awk '{if($0~"inet "){print $2}}');
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
3
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
4 user=$(whoami);
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
5
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
6 systemStarup='/Library/LaunchDaemons';
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
7 localStartup=${ROOTPWD}'/local/startup';
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
8 startup=${ROOTPWD}'/startup';
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
9
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
10 SLAVE_IP=$(dig +short "test.luan.software");
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
11
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
12 function cleanUp() {
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
13 find $localStartup -type f \( -name "*.plist" \) -delete;
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
14 }