diff --git a/openbis_all/source/bash/has-config-changed.sh b/openbis_all/source/bash/has-config-changed.sh index 7dd009a9b40330883ee87aca817f1dd28bb19ce4..1bde5274c36b70fda5d4a6483fa1158219fa0e67 100755 --- a/openbis_all/source/bash/has-config-changed.sh +++ b/openbis_all/source/bash/has-config-changed.sh @@ -4,6 +4,7 @@ # Returns 0 if configuration is the one stored in the template file, 1 otherwise. is_update_needed="false" +CONFIG_DIR=~/config function compare_configs { local config_template=$1 @@ -24,8 +25,8 @@ function compare_configs { fi } -compare_configs datastore_server-service.properties sprint/datastore_server/etc/service.properties -compare_configs service.properties sprint/openBIS-server/apache-tomcat/webapps/openbis/WEB-INF/classes/service.properties +compare_configs $CONFIG_DIR/datastore_server-service.properties ~/sprint/datastore_server/etc/service.properties +compare_configs $CONFIG_DIR/service.properties ~/sprint/openBIS-server/apache-tomcat/webapps/openbis/WEB-INF/classes/service.properties if [ "$is_update_needed" = "true" ]; then exit 1