Systme de mise jour du site web (dcapage et dplacement)
Powered by Benoit. darcs-hash:20041205162933-41617-d0c2bbec62e62290e74f9b704c1ba1038b62806f.gz
This commit is contained in:
parent
51e475ce10
commit
e91111b425
2 changed files with 115 additions and 0 deletions
19
cvsweb/update.sh
Executable file
19
cvsweb/update.sh
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
# Mise à jour de l'arborescence du site web
|
||||
# Execute toutes les minutes (par root).
|
||||
|
||||
OQP=/var/lock/cvsweb
|
||||
CHEMIN=/var/local/cvsweb
|
||||
REPOSITORY=/home/httpd/CVS-Repository/
|
||||
|
||||
if [ $CHEMIN/commit.todo -nt $CHEMIN/commit.ok ]; then
|
||||
if ! [[ -f $OQP ]]; then
|
||||
chown -R www-data:webcvs $REPOSITORY
|
||||
chmod -R o-rwx $REPOSITORY
|
||||
touch $OQP
|
||||
cd /home/httpd/web
|
||||
su www-data -c "/usr/bin/cvs -d $REPOSITORY update -P -d"
|
||||
test -s $OQP || rm -f $OQP
|
||||
su www-data -c "touch $CHEMIN/commit.ok"
|
||||
fi
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue