Commit d2d149131da4bc238270b854b8c0bd833ce63651
- Diff rendering mode:
- inline
- side by side
new_project.sh
(7 / 7)
  | |||
16 | 16 | configFile='trac.config' | |
17 | 17 | ||
18 | 18 | if [ ! -e $configFile ]; then | |
19 | 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 | 20 | same path." | |
21 | 21 | exit 1; | |
22 | 22 | elif [ ! -r $configFile ]; then | |
… | … | ||
34 | 34 | ||
35 | 35 | createDB() { | |
36 | 36 | echo "Creating DB trac_$project for $project" | |
37 | /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 | ||
39 | '$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 | 42 | initTracEnv() { | |
43 | 43 | echo "Initing Env: $project" | |
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/" | ||
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 | 49 | deployTracEnv() { |