Subdirs now get copied to www/html/ too

This commit is contained in:
Beepboop Belong the 3rd 2020-03-04 20:33:22 +01:00
parent 44cc2666a9
commit a395cfda1a
Signed by: beepboopbelong
GPG Key ID: B873A12869A7BD29
2 changed files with 1 additions and 16 deletions

View File

@ -1,15 +0,0 @@
#!/bin/bash
USER=$(whoami)
CRON_DIR=/var/spool/cron/$USER
CRON_JOB="0 0 * * * /home/$USER/update_page.sh" # a simple cron job that runs everyday
# allow user to add cron commands
sudo echo $USER >> /etc/cron.allow
# setup a cron file for the user
sudo touch $CRON_DIR
sudo /usr/bin/crontab $CRON_DIR
# setup the cron job
sudo echo $CRON_JOB >> $CRON_DIR
echo "Checking cronjobs..."
sudo crontab -u $USER -l

View File

@ -14,7 +14,7 @@ git clone $GIT_URL $OUTPUT_DIR
rm $OUTPUT_DIR/README.md rm $OUTPUT_DIR/README.md
# Copy data to webdir # Copy data to webdir
sudo cp $OUTPUT_DIR/* $WWW_DIR sudo cp -r $OUTPUT_DIR/* $WWW_DIR
# Change ownership # Change ownership
sudo chown -R $WWW_DATA_USER:$WWW_DATA_USER $WWW_DIR sudo chown -R $WWW_DATA_USER:$WWW_DATA_USER $WWW_DIR