This repository has been archived on 2025-06-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
joeac.net-symfony/install.sh
2025-06-06 19:19:21 +01:00

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