13 lines
351 B
Bash
Executable File
13 lines
351 B
Bash
Executable File
#!/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
|