14 lines
323 B
Bash
14 lines
323 B
Bash
#!/bin/sh
|
|
|
|
set -eux
|
|
cd /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 >> /etc/cron.d/joeacnet
|
|
@reboot /lib/joeac.net/restart.sh
|
|
10 * * * * /lib/joeac.net/update_and_restart.sh
|
|
EOF
|
|
sudo systemctl restart crond.service
|
|
|