annotate host/macos/addStartupScripts.sh @ 1688:5eb985d1411f
'http/serve.luan' now allows overriding port
author |
Fox |
date |
Sat, 11 Jun 2022 21:14:19 +0200 |
parents |
fd3d56f39450 |
children |
|
rev |
line source |
1631
|
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
|
1632
|
16 addStartup;
|
1631
|
17
|
|
18 cd $ROOTPWD;
|