Mercurial > hg > soundsoftware-site
view 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 |
line wrap: on
line source
#!/bin/bash set -e # In a real deployment, /var/hg is probably mounted from somewhere # else. But in an empty deployment we need to create it, and in both # cases we set up the config files with their current versions here. if [ ! -f /var/hg/index.cgi ]; then mkdir -p /var/hg fi cp /var/www/code/deploy/config/index.cgi /var/hg/ cp /var/www/code/deploy/config/hgweb.config /var/hg/ chmod +x /var/hg/index.cgi chown -R www-data.code /var/hg find /var/hg -type d -exec chmod g+s \{\} \;