comparison backup/macos/startupScripts.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 cd ..
2 ROOTPWD=$(pwd);
3
4 user=$(whoami);
5
6 systemStarup='/Library/LaunchDaemons';
7 localStartup=${ROOTPWD}'/local/startup';
8 startup=${ROOTPWD}'/macos';
9
10 function addStartup() {
11 cd $localStartup;
12 for file in *.plist; do
13 sudo ln -sf ${localStartup}/${file} ${systemStarup}/${file};
14 sudo chown root:wheel ${localStartup}/${file};
15 done;
16 }