annotate macos/addStartupScripts.sh @ 22:e65668ff8822

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 15 Sep 2024 08:21:43 -0600
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;