Mercurial Hosting > luan
annotate host/macos/startupScripts.sh @ 2061:dd10659fcdb9 acme-tiny tip
Renew ssl monthly instead of daily; Fix renewSsl.sh
| author | Violet7 |
|---|---|
| date | Thu, 13 Nov 2025 23:17:16 -0800 |
| parents | 6378d261136e |
| children |
| rev | line source |
|---|---|
|
1635
fd3d56f39450
rearrange startup files
Franklin Schmidt <fschmidt@gmail.com>
parents:
1632
diff
changeset
|
1 cd .. |
| 1631 | 2 ROOTPWD=$(pwd); |
| 3 IP=$(ifconfig en0 | awk '{if($0~"inet "){print $2}}'); | |
| 4 | |
| 5 user=$(whoami); | |
| 6 | |
| 7 systemStarup='/Library/LaunchDaemons'; | |
| 8 localStartup=${ROOTPWD}'/local/startup'; | |
|
1635
fd3d56f39450
rearrange startup files
Franklin Schmidt <fschmidt@gmail.com>
parents:
1632
diff
changeset
|
9 startup=${ROOTPWD}'/macos'; |
| 1631 | 10 |
| 1632 | 11 function addStartup() { |
| 12 cd $localStartup; | |
| 13 for file in *.plist; do | |
| 14 sudo ln -sf ${localStartup}/${file} ${systemStarup}/${file}; | |
| 15 sudo chown root:wheel ${localStartup}/${file}; | |
|
2061
dd10659fcdb9
Renew ssl monthly instead of daily; Fix renewSsl.sh
Violet7
parents:
1709
diff
changeset
|
16 sudo launchctl unload ${systemStarup}/${file}; |
|
dd10659fcdb9
Renew ssl monthly instead of daily; Fix renewSsl.sh
Violet7
parents:
1709
diff
changeset
|
17 sudo launchctl load ${systemStarup}/${file}; |
| 1632 | 18 done; |
| 1631 | 19 } |
