Mercurial Hosting > luan
annotate host/macos/startupScripts.sh @ 1648:224af797b1f9
Mainly small install script improvements
- Consistent usage of `$LUANHOME`, removed reliance on current directory.
- Made Luan build and install fine (on Linux) without requiring launching it via sudo. Only asks to elevate privileges if installation failed.
- Minor spelling mistake fix.
| author | Fox |
|---|---|
| date | Mon, 28 Mar 2022 18:00:12 +0200 |
| parents | fd3d56f39450 |
| children | 6378d261136e |
| 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'; |
|
fd3d56f39450
rearrange startup files
Franklin Schmidt <fschmidt@gmail.com>
parents:
1632
diff
changeset
|
10 startupPostgres=${ROOTPWD}'/macos/postgres'; |
| 1631 | 11 |
| 1632 | 12 function addStartup() { |
| 13 cd $localStartup; | |
| 14 for file in *.plist; do | |
| 15 sudo ln -sf ${localStartup}/${file} ${systemStarup}/${file}; | |
| 16 sudo chown root:wheel ${localStartup}/${file}; | |
| 17 done; | |
| 1631 | 18 } |
