diff --git a/deployment_scripts/appimage/run_appimage.sh b/deployment_scripts/appimage/run_appimage.sh index f33a95699..7738301cd 100644 --- a/deployment_scripts/appimage/run_appimage.sh +++ b/deployment_scripts/appimage/run_appimage.sh @@ -8,6 +8,13 @@ configure_default_logging() { fi } +configure_default_server() { + if [ ! -f $DOT_MONKEY/server_config.json ]; then + cp $APPDIR/usr/src/monkey_island/cc/server_config.json.standard $DOT_MONKEY/server_config.json + fi +} + + # Detecting command that calls python 3.7 python_cmd="" @@ -27,6 +34,7 @@ DB_DIR=$DOT_MONKEY/db mkdir -p $DB_DIR configure_default_logging +configure_default_server cd $APPDIR/usr/src ./monkey_island/bin/mongodb/bin/mongod --dbpath $DB_DIR &