summaryrefslogtreecommitdiffstats
path: root/bin/addproject
diff options
context:
space:
mode:
Diffstat (limited to 'bin/addproject')
-rwxr-xr-xbin/addproject8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/addproject b/bin/addproject
index 0626003..7f853d1 100755
--- a/bin/addproject
+++ b/bin/addproject
@@ -20,6 +20,9 @@ main() {
eerror "Project ${project_name} already exists."
fi
+ eask_str "a project description"
+ project_desc=${REPLY}
+
# who requests the project ?
while [[ -z ${user_name} ]]
do
@@ -55,7 +58,10 @@ main() {
eheading "creating new trac project"
eexec mysqladmin create ${trac_db}
- eexec trac-admin ${trac_home} initenv --inherit=${TRAC_INI} ${project_name} "mysql://${MYSQL_USER}:${MYSQL_PASS}@${MYSQL_HOST}/${trac_db}" svn ${svn_home}
+ eexec trac-admin ${trac_home} initenv --inherit=${TRAC_INI} ${project_name} \
+ "mysql://${MYSQL_USER}:${MYSQL_PASS}@${MYSQL_HOST}/${trac_db}" svn ${svn_home}
+ eexec sed -i -e "/^name =/a\\descr = ${project_desc}\\" ${trac_home}/conf/trac.ini
+
if [[ ${project_closed} == y ]]
then
for perm in BROWSER_VIEW CHANGESET_VIEW FILE_VIEW LOG_VIEW MILESTONE_VIEW \