This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
nav/install.sh

25 lines
484 B
Bash
Raw Normal View History

2022-11-03 17:02:36 +08:00
cd /var/www/html
git clone $GITURL sui
shopt -s dotglob
mv sui/* .
rm -rf sui
echo "pulled update"
# Copy hello-cron file to the cron.d directory
cp sui-cron /etc/cron.d/sui-cron
# Give execution rights on the cron job
chmod 0644 /etc/cron.d/sui-cron
# set pull script permissions
chmod +x gitpull.sh
# Apply cron job
crontab /etc/cron.d/sui-cron
# Create the log file to be able to run tail
touch /var/log/cron.log
# configure nginx
echo "daemon off;" >> /etc/nginx/nginx.conf