Commit 8c204f0d3206f87042c332fff1e3a04103835bb6
- Diff rendering mode:
- inline
- side by side
new_project.sh
(5 / 5)
  | |||
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_$1 default | ||
38 | character set utf8 collate utf8_bin;grant all privileges on trac_$1.* to | ||
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 | 39 | '$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$1 initenv "\"$1\"" | ||
45 | "mysql://$tuser:$tpassword@localhost:3306/trac_$1" "git" | ||
44 | /usr/local/bin/trac-admin $trac_project$project initenv "\"$project\"" | ||
45 | "mysql://$tuser:$tpassword@localhost:3306/trac_$project" "git" | ||
46 | 46 | "/vol/www/gitorious/repositories/" | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | deployTracEnv() { | |
50 | 50 | echo "Deploying to $trac_project$project/deploy/" | |
51 | /usr/local/bin/trac-admin $trac_project$1 deploy $trac_project$1"/deploy/" | ||
51 | /usr/local/bin/trac-admin $trac_project$project deploy $trac_project$project"/deploy/" | ||
52 | 52 | } | |
53 | 53 | ||
54 | 54 | chmodTracEnv() { |