[Mageia-sysadm] [1114] update script

Michael Scherer misc at zarb.org
Thu Feb 17 17:39:20 CET 2011


Le jeudi 17 février 2011 à 15:09 +0100, root at mageia.org a écrit :
> Revision: 1114
> Author:   dams
> Date:     2011-02-17 15:09:18 +0100 (Thu, 17 Feb 2011)
> Log Message:
> -----------
> update script
> 
> Modified Paths:
> --------------
>     puppet/modules/planet/templates/deploy_new-planet.sh
> 
> Modified: puppet/modules/planet/templates/deploy_new-planet.sh
> ===================================================================
> --- puppet/modules/planet/templates/deploy_new-planet.sh	2011-02-17 13:10:20 UTC (rev 1113)
> +++ puppet/modules/planet/templates/deploy_new-planet.sh	2011-02-17 14:09:18 UTC (rev 1114)
> @@ -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

I think it would be better to not have a interactive script if we want
to have automated deployment. That's quite easy to fix, you can just use
the first argument for getting the locale, and skip the check later.

 
> @@ -19,7 +19,16 @@
>  		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

No vcs, no versionning ? 

-- 
Michael Scherer



More information about the Mageia-sysadm mailing list