Mercurial Hosting > luan
view host/addStartupScripts.sh @ 1633:665049cffc02
fix path
author | fffilimonov |
---|---|
date | Tue, 14 Dec 2021 07:55:47 -0600 |
parents | 0344a535b1db |
children |
line wrap: on
line source
#!/bin/bash . startupScripts.sh; mkdir -p $localStartup 2>/dev/null; cd $startup; for file in *.plist; do log=${ROOTPWD}"/logs/startup.${file}.log"; sed "s~PWD~${startup}~g;\ s~LOG~${log}~g;\ s~USER~${user}~g;\ s~ROOT~${ROOTPWD}~g" $file > ${localStartup}/${file}; done; addStartup; cd $ROOTPWD;