Mercurial Hosting > luan
comparison backup/macos/addStartupScripts.sh @ 1693:45eaaf5146f3
add backup autostart
| author | Vadim Filimonov <fffilimonov@yandex.ru> |
|---|---|
| date | Mon, 20 Jun 2022 10:29:43 +0300 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1692:d6ec67fa4a61 | 1693:45eaaf5146f3 |
|---|---|
| 1 #!/bin/bash | |
| 2 | |
| 3 . startupScripts.sh; | |
| 4 | |
| 5 mkdir -p $localStartup 2>/dev/null; | |
| 6 | |
| 7 cd $startup; | |
| 8 for file in *.plist; do | |
| 9 log=${ROOTPWD}"/logs/startup.${file}.log"; | |
| 10 sed "s~PWD~${startup}~g;\ | |
| 11 s~LOG~${log}~g;\ | |
| 12 s~USER~${user}~g;\ | |
| 13 s~ROOT~${ROOTPWD}~g" $file > ${localStartup}/${file}; | |
| 14 done; | |
| 15 | |
| 16 addStartup; | |
| 17 | |
| 18 cd $ROOTPWD; |
