From 8c204f0d3206f87042c332fff1e3a04103835bb6 Mon Sep 17 00:00:00 2001 From: Anon Ray Date: Thu, 23 May 2013 19:20:28 +0530 Subject: [PATCH] Fix wrong variable name In some places $1 was not replaced by $project. Fix them. --- new_project.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/new_project.sh b/new_project.sh index c6ce782..319f90a 100755 --- a/new_project.sh +++ b/new_project.sh @@ -34,21 +34,21 @@ readConfig() { createDB() { echo "Creating DB trac_$project for $project" - /usr/bin/mysql -u $ruser -p$rpassword -e "create database trac_$1 default - character set utf8 collate utf8_bin;grant all privileges on trac_$1.* to + /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$1 initenv "\"$1\"" - "mysql://$tuser:$tpassword@localhost:3306/trac_$1" "git" + /usr/local/bin/trac-admin $trac_project$project initenv "\"$project\"" + "mysql://$tuser:$tpassword@localhost:3306/trac_$project" "git" "/vol/www/gitorious/repositories/" } deployTracEnv() { echo "Deploying to $trac_project$project/deploy/" - /usr/local/bin/trac-admin $trac_project$1 deploy $trac_project$1"/deploy/" + /usr/local/bin/trac-admin $trac_project$project deploy $trac_project$project"/deploy/" } chmodTracEnv() { -- 1.7.10.4