Skip to content

Commit

Permalink
Improvements to make the default prepare-project script more stable
Browse files Browse the repository at this point in the history
refs #11
  • Loading branch information
Daniel Schwiperich committed Feb 4, 2016
1 parent 0ead57c commit a200197
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/prepare-project.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
#!/bin/sh

set -e

echo "***********************************"
printf "*** prepare project script\n"
echo "---------------------------------------------------"
printf "| $(hostname -i) $DOCKER_DOMAIN | \n"
echo "---------------------------------------------------"

# Make sure on run and start we are in the same dir
cd /var/www/share

if [ ! -e "project-initialized.flag" ]
then

Expand All @@ -25,7 +32,7 @@ then


printf "*** creating project initialized flag\n"
touch project-initialized.flag
touch /var/www/share/project-initialized.flag
else
printf "*** initialized flag found. Nothing to be done here\n"
fi
Expand Down

0 comments on commit a200197

Please sign in to comment.