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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1109 - (show annotations) (download) (as text)
Thu Feb 17 12:39:39 2011 UTC (10 years, 8 months ago) by dams
File MIME type: application/x-sh
File size: 559 byte(s)
typo
1 #!/bin/sh
2
3 # Initialization
4 PATH_TO_FILE=${PATH_TO_FILE:-/var/lib/planet}
5 PATH_TO_PLANET=${PATH_TO_PLANET:-/var/www/html/planet<%= domain %>}
6
7 #Ask for new locale name if no parameter given
8 echo -n "Locale name: "
9 read locale
10
11 # Display the answer and ask for confirmation
12 echo -e -n "Do you confirm the entry: \"$locale\"? (y/n) "
13 read answer
14 if [ "$answer" == "y" ]
15 then
16 FILE="$PATH_TO_PLANET/$locale/"
17 if test -d $FILE
18 then
19 echo "Aborted, $FILE already exist."
20 exit 2
21 else
22 /bin/mkdir $FILE
23 fi
24 else
25 echo "Aborted, please try again."
26 exit 2
27 fi

Properties

Name Value
svn:eol-style native
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.28