annotate deploy/provision.d/040-hg-dir.sh @ 1628:9c5f8e24dadc live tip

Quieten this cron script
author Chris Cannam
date Tue, 25 Aug 2020 11:38:49 +0100
parents c18460da6620
children
rev   line source
Chris@1577 1 #!/bin/bash
Chris@1577 2
Chris@1577 3 set -e
Chris@1577 4
Chris@1589 5 # In a real deployment, /var/hg is probably mounted from somewhere
Chris@1589 6 # else. But in an empty deployment we need to create it, and in both
Chris@1589 7 # cases we set up the config files with their current versions here.
Chris@1589 8
Chris@1577 9 if [ ! -f /var/hg/index.cgi ]; then
Chris@1577 10 mkdir -p /var/hg
Chris@1577 11 fi
Chris@1589 12
Chris@1589 13 cp /var/www/code/deploy/config/index.cgi /var/hg/
Chris@1589 14 cp /var/www/code/deploy/config/hgweb.config /var/hg/
Chris@1589 15
Chris@1589 16 chmod +x /var/hg/index.cgi
Chris@1589 17
Chris@1590 18 chown -R www-data.code /var/hg
Chris@1589 19 find /var/hg -type d -exec chmod g+s \{\} \;
Chris@1589 20