/[adm]/puppet/modules/planet/templates/deploy_new-planet.sh
ViewVC logotype

Diff of /puppet/modules/planet/templates/deploy_new-planet.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1108 by dams, Thu Feb 17 12:37:19 2011 UTC revision 1109 by dams, Thu Feb 17 12:39:39 2011 UTC
# Line 2  Line 2 
2    
3  # Initialization  # Initialization
4  PATH_TO_FILE=${PATH_TO_FILE:-/var/lib/planet}  PATH_TO_FILE=${PATH_TO_FILE:-/var/lib/planet}
5  PATH_TO_PLANET=${PATH_TO_FILE:-/var/www/html/planet<%= domain %>}  PATH_TO_PLANET=${PATH_TO_PLANET:-/var/www/html/planet<%= domain %>}
6    
7  #Ask for new locale name if no parameter given  #Ask for new locale name if no parameter given
8  echo -n "Locale name: "  echo -n "Locale name: "
# Line 13  echo -e -n "Do you confirm the entry: \" Line 13  echo -e -n "Do you confirm the entry: \"
13  read answer  read answer
14  if [ "$answer" == "y" ]  if [ "$answer" == "y" ]
15  then  then
16          FILE="$PATH_TO_FILE/$locale/"          FILE="$PATH_TO_PLANET/$locale/"
17          if test -d $FILE          if test -d $FILE
18          then          then
19                  echo "Aborted, $FILE already exist."                  echo "Aborted, $FILE already exist."

Legend:
Removed from v.1108  
changed lines
  Added in v.1109

  ViewVC Help
Powered by ViewVC 1.1.28