aboutsummaryrefslogtreecommitdiffstats
path: root/bin/dev_tools/master_app.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/dev_tools/master_app.sh')
-rwxr-xr-xbin/dev_tools/master_app.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/bin/dev_tools/master_app.sh b/bin/dev_tools/master_app.sh
index bf11d7f1..6abbdfd4 100755
--- a/bin/dev_tools/master_app.sh
+++ b/bin/dev_tools/master_app.sh
@@ -138,14 +138,19 @@ for p in $(find bin -name srtool_env.sh -exec grep -l "SRT_MAIN_APP" {} \;) ; do
else
echo "DISABLE_MASTER:$p"
mv -f $ds_dir/datasource.json $ds_dir/datasource.json_sample 2> /dev/null
- # Remove old app's datasources
- prev_app=$(basename $ds_dir)
- bin/common/srtool_utils.py --remove-app-sources $prev_app
+ # Remove old app's datasources, if database
+ if [ -f "bin/common/srt_schema.py" ] ; then
+ prev_app=$(basename $ds_dir)
+ bin/common/srtool_utils.py --remove-app-sources $prev_app
+ fi
fi
done
if [ "yp" = "$master_app" ] ; then
echo "SET_MASTER:./bin/$master_app"
else
- echo bin/common/srtool_utils.py --remove-app-sources yp
+ # Remove YP's datasources, if database
+ if [ -f "bin/common/srt_schema.py" ] ; then
+ echo bin/common/srtool_utils.py --remove-app-sources yp
+ fi
fi