File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,14 @@ setup_admin_user() {
3434 trac-admin /trac session add admin $TRAC_ADMIN_NAME root@localhost
3535 trac-admin /trac permission add $TRAC_ADMIN_NAME TRAC_ADMIN
3636 htpasswd -b -c /trac/.htpasswd $TRAC_ADMIN_NAME $TRAC_ADMIN_PASS
37+ echo -e " \tUser Setup...$TRAC_ADMIN_NAME $TRAC_ADMIN_PASS "
3738}
3839
3940setup_trac () {
4041 [ ! -d /trac ] && mkdir /trac
4142 if [ ! -f /trac/VERSION ]; then
43+ echo -e " \tTrac is not installed...so installing!"
44+ ls -altr /trac/VERSION
4245 trac-admin $TRAC_DIR initenv $TRAC_PROJECT_NAME $DB_LINK
4346 trac-admin $TRAC_DIR deploy /tmp/trac > /dev/null 2>&1
4447 echo " Trac Apache Deploy..."
@@ -53,10 +56,13 @@ setup_trac() {
5356 setup_components
5457 echo " Setup Account Manager"
5558 setup_accountmanager
59+ echo " Create user"
5660 setup_admin_user
5761 trac-admin /trac config set logging log_type stderr
5862 [ -f /var/www/trac_logo.png ] && cp -v /var/www/trac_logo.png /trac/htdocs/your_project_logo.png
5963 chown -R www-data:www-data $TRAC_DIR
64+ else
65+ echo -e " \tTrac is already installed so not going to do anything"
6066 fi
6167}
6268
You can’t perform that action at this time.
0 commit comments