annotate macos/addStartupScripts.sh @ 17:3e8c7d089e30

URL update
author Vadim Filimonov <fffilimonov@yandex.ru>
date Mon, 02 Oct 2023 12:23:02 +0300
parents dfc36e7ed22c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
1 #!/bin/bash
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
2
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
3 . startupScripts.sh;
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
4
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
5 mkdir -p $localStartup 2>/dev/null;
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
6
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
7 cd $startup;
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
8 for file in *.plist; do
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
9 log=${ROOTPWD}"/logs/startup.${file}.log";
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
10 sed "s~PWD~${startup}~g;\
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
11 s~LOG~${log}~g;\
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
12 s~USER~${user}~g;\
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
13 s~ROOT~${ROOTPWD}~g" $file > ${localStartup}/${file};
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
14 done;
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
15
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
16 addStartup;
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
17
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
18 cd $ROOTPWD;