Skip to content
Snippets Groups Projects
Verified Commit aedd6e5e authored by Timm Fitschen's avatar Timm Fitschen
Browse files

WIP: pipeline

parent 94224d15
No related branches found
No related tags found
No related merge requests found
......@@ -24,19 +24,14 @@
# this patch introduces the mysql stored funtion 'CaosDBVersion' with a initial value of 2.0.0
# Update mysql schema to version v2.0.0
echo "HERE 5a"
if [ -z "$UTILSPATH" ]; then
UTILSPATH="../utils"
fi
echo "HERE 5b"
echo "HERE 5c"
source $UTILSPATH/patch_header.sh
echo "HERE 5d"
if test ! $(mysql_execute "Select CaosDBVersion();" > /dev/null) ; then
uptodate
fi
echo "HERE 5e"
# install function CaosDBVersion()
mysql_execute "CREATE FUNCTION CaosDBVersion() RETURNS VARCHAR(255) DETERMINISTIC RETURN 'v2.0.0';"
......
......@@ -67,8 +67,6 @@ function _print_help() {
fi
}
echo $@
while test $# -gt 0; do
case "$1" in
-h|--help)
......@@ -103,9 +101,9 @@ while test $# -gt 0; do
esac
done
echo "HERE header1"
source $ENV_FILE || echo "Could not source $ENV_FILE"
echo "HERE header2"
if [ -n "$ENV_FILE" ] ; then
source $ENV_FILE || echo "Could not source '$ENV_FILE'" ;
fi
if [[ -z "$DATABASE_NAME" && -z "$MYSQL_CONNECTION" ]]
then
......
......@@ -26,7 +26,7 @@
source patches/utils/patch_header.sh
echo -n "updating rules ... $CMD_MYSQL $MYSQL_CONNECTION"
echo -n "updating rules ... "
set -e
mysql_execute "$(sed s/db_2_0/$DATABASE_NAME/g rules.sql)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment