annotate host/macos/addStartupScripts.sh @ 1831:8f9ae295bf6a default tip

add Hosted.authorize
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 26 Sep 2024 15:07:45 -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;