Add 'legacy/scripts/internal-webserver.sh'

pull/4/head
drunkendog 2023-06-23 03:31:07 +01:00
parent b38904df4f
commit 8c1b48c4c9
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
#!/bin/bash
set -e
export DEBIAN_FRONTEND=noninteractive
apt-get update -y
apt-get upgrade -y
apt-get install -y git apache2
cd /var/www/html/
git clone https://github.com/that-github-guy/quick-deploy-scripts.git
# { crontab -l -u root; echo '*/15 * * * * cd /var/www/html/quick-deploy-scripts/ && git pull --ff-only main'; } | crontab -u root -