install/uninstall/update/restart scripts
This commit is contained in:
12
install.sh
Executable file
12
install.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eux
|
||||
cd ${LIB_DIR:-/lib}
|
||||
sudo git clone https://git.joeac.net/joeac/joeac.net.git
|
||||
cd joeac.net
|
||||
sudo chmod +x uninstall.sh update_and_restart.sh restart.sh
|
||||
sudo echo << EOF >> ${CRONTABS_DIR:-/etc/cron.d}/joeacnet
|
||||
@reboot ${LIB_DIR:-/lib}/joeac.net/restart.sh
|
||||
10 * * * * ${LIB_DIR:-/lib}/joeac.net/update_and_restart.sh
|
||||
EOF
|
||||
./restart.sh
|
||||
Reference in New Issue
Block a user