From c46c02507f6f03b3c3340fb45ec9cbb7c83a048f Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Fri, 10 Sep 2021 15:21:34 +0530 Subject: [PATCH] build_scripts: Extract deployment field from server configs to separate files for appimage and docker --- build_scripts/appimage/deployment.json | 3 +++ build_scripts/appimage/server_config.json.standard | 3 +-- build_scripts/docker/deployment.json | 3 +++ build_scripts/docker/server_config.json | 3 +-- 4 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 build_scripts/appimage/deployment.json create mode 100644 build_scripts/docker/deployment.json diff --git a/build_scripts/appimage/deployment.json b/build_scripts/appimage/deployment.json new file mode 100644 index 000000000..914c44d4f --- /dev/null +++ b/build_scripts/appimage/deployment.json @@ -0,0 +1,3 @@ +{ + "deployment": "standard" +} diff --git a/build_scripts/appimage/server_config.json.standard b/build_scripts/appimage/server_config.json.standard index af975a9e0..889654ea2 100644 --- a/build_scripts/appimage/server_config.json.standard +++ b/build_scripts/appimage/server_config.json.standard @@ -2,8 +2,7 @@ "data_dir": "~/.monkey_island", "log_level": "DEBUG", "environment": { - "server_config": "password", - "deployment": "standard" + "server_config": "password" }, "mongodb": { "start_mongodb": true diff --git a/build_scripts/docker/deployment.json b/build_scripts/docker/deployment.json new file mode 100644 index 000000000..66125c06f --- /dev/null +++ b/build_scripts/docker/deployment.json @@ -0,0 +1,3 @@ +{ + "deployment": "docker" +} diff --git a/build_scripts/docker/server_config.json b/build_scripts/docker/server_config.json index 77e5d9855..ea464f181 100644 --- a/build_scripts/docker/server_config.json +++ b/build_scripts/docker/server_config.json @@ -2,8 +2,7 @@ "data_dir": "/monkey_island_data", "log_level": "DEBUG", "environment": { - "server_config": "password", - "deployment": "docker" + "server_config": "password" }, "mongodb": { "start_mongodb": false