--- a/new_project.sh +++ b/new_project.sh @@ -16,7 +16,7 @@ configFile='trac.config' if [ ! -e $configFile ]; then - 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 \ same path." exit 1; elif [ ! -r $configFile ]; then @@ -34,16 +34,16 @@ createDB() { echo "Creating DB trac_$project for $project" - /usr/bin/mysql -u $ruser -p$rpassword -e "create database trac_$project default - character set utf8 collate utf8_bin;grant all privileges on trac_$project.* to - '$tuser'@'localhost' identified by '$tpassword';" + /usr/bin/mysql -u $ruser -p$rpassword -e "create database trac_$project \ + default character set utf8 collate utf8_bin;grant all privileges on \ + trac_$project.* to '$tuser'@'localhost' identified by '$tpassword';" } initTracEnv() { echo "Initing Env: $project" - /usr/local/bin/trac-admin $trac_project$project initenv "\"$project\"" - "mysql://$tuser:$tpassword@localhost:3306/trac_$project" "git" - "/vol/www/gitorious/repositories/" + /usr/local/bin/trac-admin $trac_project$project initenv "$project" \ + "mysql://$tuser:$tpassword@localhost:3306/trac_$project" "git" \ + "/vol/www/gitorious/repositories/$project" } deployTracEnv() {