Commit d2d149131da4bc238270b854b8c0bd833ce63651
Fix whitespace problems in long strings
Line breaks were not properly handled in the strings. Fix them.
| | | | 16 | configFile='trac.config' | 16 | configFile='trac.config' |
---|
17 | | 17 | |
---|
18 | if [ ! -e $configFile ]; then | 18 | if [ ! -e $configFile ]; then |
---|
19 | echo "$configFile does not exist. Make sure you have a config file in the | | echo "$configFile does not exist. Make sure you have a config file in the |
---|
| | 19 | echo "$configFile does not exist. Make sure you have a config file in the \ | 20 | same path." | 20 | same path." |
---|
21 | exit 1; | 21 | exit 1; |
---|
22 | elif [ ! -r $configFile ]; then | 22 | elif [ ! -r $configFile ]; then |
---|
… | | … | |
---|
34 | | 34 | |
---|
35 | createDB() { | 35 | createDB() { |
---|
36 | echo "Creating DB trac_$project for $project" | 36 | echo "Creating DB trac_$project for $project" |
---|
37 | /usr/bin/mysql -u $ruser -p$rpassword -e "create database trac_$project default | | /usr/bin/mysql -u $ruser -p$rpassword -e "create database trac_$project default |
---|
38 | character set utf8 collate utf8_bin;grant all privileges on trac_$project.* to | | character set utf8 collate utf8_bin;grant all privileges on trac_$project.* to |
---|
39 | '$tuser'@'localhost' identified by '$tpassword';" | | '$tuser'@'localhost' identified by '$tpassword';" |
---|
| | 37 | /usr/bin/mysql -u $ruser -p$rpassword -e "create database trac_$project \ | | | 38 | default character set utf8 collate utf8_bin;grant all privileges on \ |
---|
| | 39 | trac_$project.* to '$tuser'@'localhost' identified by '$tpassword';" |
---|
40 | } | 40 | } |
---|
41 | | 41 | |
---|
42 | initTracEnv() { | 42 | initTracEnv() { |
---|
43 | echo "Initing Env: $project" | 43 | echo "Initing Env: $project" |
---|
44 | /usr/local/bin/trac-admin $trac_project$project initenv "\"$project\"" | | /usr/local/bin/trac-admin $trac_project$project initenv "\"$project\"" |
---|
45 | "mysql://$tuser:$tpassword@localhost:3306/trac_$project" "git" | | "mysql://$tuser:$tpassword@localhost:3306/trac_$project" "git" |
---|
46 | "/vol/www/gitorious/repositories/" | | "/vol/www/gitorious/repositories/" |
---|
| | 44 | /usr/local/bin/trac-admin $trac_project$project initenv "$project" \ | | | 45 | "mysql://$tuser:$tpassword@localhost:3306/trac_$project" "git" \ |
---|
| | 46 | "/vol/www/gitorious/repositories/$project" |
---|
47 | } | 47 | } |
---|
48 | | 48 | |
---|
49 | deployTracEnv() { | 49 | deployTracEnv() { |
---|