Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Added main.sh if comanage were composed
Browse files Browse the repository at this point in the history
  • Loading branch information
villadalmine committed Sep 13, 2016
1 parent b5dd760 commit 8bb5c95
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions container_files/bin/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,19 @@ else
echo "Database Connection with $MYSQL_USER to database $MYSQL_DATABASE was completed without any error" >> $log
echo "Database Connection with $MYSQL_USER to database $MYSQL_DATABASE was completed without any error"
date >> $log
echo "Starting apache and shibd" >>$log
echo "Starting apache shibd"
/usr/local/bin/httpd-shib-foreground
/opt/bin/main.sh
laststatus="$?"
echo "main.sh last status: $laststatus"
if [ "$laststatus" != "0" ]; then
echo "composed non-zero exit status: $laststatus" >> $log
echo "composed non-zero exit status: $laststatus"
exit 1
else
date >> $log
echo "COmanage was configured" >>$log
echo "COmanage was configured"
echo "Starting apache and shibd" >>$log
echo "Starting apache shibd"
/usr/local/bin/httpd-shib-foreground
fi
fi

0 comments on commit 8bb5c95

Please sign in to comment.