diff options
author | Damien Lallement <dams@mageia.org> | 2011-02-17 14:09:18 +0000 |
---|---|---|
committer | Damien Lallement <dams@mageia.org> | 2011-02-17 14:09:18 +0000 |
commit | 8966797cba3c0081a64ba2885ee2014411e134d4 (patch) | |
tree | be30a7035308a51aac60328503838115267ce0c6 /modules/planet | |
parent | 8f3abf1b67a885152b445e5e2043219159306d47 (diff) | |
download | puppet-8966797cba3c0081a64ba2885ee2014411e134d4.tar puppet-8966797cba3c0081a64ba2885ee2014411e134d4.tar.gz puppet-8966797cba3c0081a64ba2885ee2014411e134d4.tar.bz2 puppet-8966797cba3c0081a64ba2885ee2014411e134d4.tar.xz puppet-8966797cba3c0081a64ba2885ee2014411e134d4.zip |
update script
Diffstat (limited to 'modules/planet')
-rwxr-xr-x | modules/planet/templates/deploy_new-planet.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/planet/templates/deploy_new-planet.sh b/modules/planet/templates/deploy_new-planet.sh index 6c4b8c9c..27029fb2 100755 --- a/modules/planet/templates/deploy_new-planet.sh +++ b/modules/planet/templates/deploy_new-planet.sh @@ -4,7 +4,7 @@ PATH_TO_FILE=${PATH_TO_FILE:-/var/lib/planet} PATH_TO_PLANET=${PATH_TO_PLANET:-/var/www/html/planet.<%= domain %>} -#Ask for new locale name if no parameter given +#Ask for new locale name echo -n "Locale name: " read locale @@ -19,7 +19,16 @@ then echo "Aborted, $FILE already exist." exit 2 else + # Deploy new planet with locale given /bin/mkdir $FILE + /bin/chown planet:apache $FILE + /usr/bin/wget -O $PATH_TO_FILE"/moonmoon.tar.gz" http://damsweb.net/files/moonmoon_mageia.tar.gz + if [ $? -ne 0 ] + then + echo "Aborted, can't download GZIP file" + exit 2 + fi + /bin/tar zxvf $PATH_TO_FILE/moonmoon.tar.gz -C $FILE fi else echo "Aborted, please try again." |