annotate host/macos/addStartupScripts.sh @ 1760:13da09b5b13b

merge
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 10 Apr 2023 17:46:41 -0600
parents fd3d56f39450
children
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 #!/bin/bash
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
2
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
3 . startupScripts.sh;
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
4
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
5 mkdir -p $localStartup 2>/dev/null;
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
6
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
7 cd $startup;
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
8 for file in *.plist; do
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
9 log=${ROOTPWD}"/logs/startup.${file}.log";
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
10 sed "s~PWD~${startup}~g;\
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
11 s~LOG~${log}~g;\
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
12 s~USER~${user}~g;\
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
13 s~ROOT~${ROOTPWD}~g" $file > ${localStartup}/${file};
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
14 done;
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
15
1632
0344a535b1db add doc
fffilimonov
parents: 1631
diff changeset
16 addStartup;
1631
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
17
35c626c06dd5 add startup scripts for mac os
fffilimonov
parents:
diff changeset
18 cd $ROOTPWD;