diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-05-15 17:53:29 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-05-15 17:53:29 +0000 |
commit | 783f47b5c62eb67fcb42b5b7e73920942c1f7f4f (patch) | |
tree | 4b00d3b4682d1e4c9f89be8afd2063b8a9acb5db /modules | |
parent | ba5932c7a7bdd8b3b8d391d8948438e7273ae892 (diff) | |
download | puppet-783f47b5c62eb67fcb42b5b7e73920942c1f7f4f.tar puppet-783f47b5c62eb67fcb42b5b7e73920942c1f7f4f.tar.gz puppet-783f47b5c62eb67fcb42b5b7e73920942c1f7f4f.tar.bz2 puppet-783f47b5c62eb67fcb42b5b7e73920942c1f7f4f.tar.xz puppet-783f47b5c62eb67fcb42b5b7e73920942c1f7f4f.zip |
use planet_location variable in backup and deploy scripts
Diffstat (limited to 'modules')
-rwxr-xr-x | modules/planet/templates/backup_planet-files.sh | 2 | ||||
-rwxr-xr-x | modules/planet/templates/deploy_new-planet.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/planet/templates/backup_planet-files.sh b/modules/planet/templates/backup_planet-files.sh index 45b15596..1b019afd 100755 --- a/modules/planet/templates/backup_planet-files.sh +++ b/modules/planet/templates/backup_planet-files.sh @@ -11,7 +11,7 @@ do then /bin/mkdir $PATH_TO_FILE/$locale fi - rsync -aHP --delete /var/www/html/planet.<%= domain %>/$locale $PATH_TO_FILE/$locale/$locale-$COUNT + rsync -aHP --delete <%= planet_location %>/$locale $PATH_TO_FILE/$locale/$locale-$COUNT done # Check count file to have a week of backup in the directory if [ $COUNT -ne 6 ] diff --git a/modules/planet/templates/deploy_new-planet.sh b/modules/planet/templates/deploy_new-planet.sh index 297ba529..eb69f9af 100755 --- a/modules/planet/templates/deploy_new-planet.sh +++ b/modules/planet/templates/deploy_new-planet.sh @@ -2,7 +2,7 @@ # Initialization PATH_TO_FILE=${PATH_TO_FILE:-/var/lib/planet} -PATH_TO_PLANET=${PATH_TO_PLANET:-/var/www/html/planet.<%= domain %>} +PATH_TO_PLANET=${PATH_TO_PLANET:-<%= planet_location %>} #Ask for new locale name echo -n "Locale name: " |