-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #205 from silinternational/feature/script-tweaks
minor tweaks to script files
- Loading branch information
Showing
5 changed files
with
27 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Try to run database migrations | ||
cd /data/vendor/simplesamlphp/simplesamlphp/modules/silauth | ||
chmod a+x ./lib/Auth/Source/yii | ||
# echo script commands to stdout | ||
set -x | ||
|
||
# exit if any command fails | ||
set -e | ||
|
||
output=$(./lib/Auth/Source/yii migrate --interactive=0 2>&1) | ||
# Try to run database migrations | ||
cd /data/vendor/simplesamlphp/simplesamlphp/modules/silauth/lib/Auth/Source | ||
chmod a+x ./yii | ||
|
||
# If they failed, exit. | ||
rc=$?; | ||
if [[ $rc != 0 ]]; then | ||
logger --priority user.err --stderr "Migrations failed with status ${rc} and output: ${output}" | ||
exit $rc; | ||
fi | ||
./yii migrate --interactive=0 | ||
|
||
cd /data | ||
./run.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters