diff options
author | Oliver Poignant <oliver@poignant.se> | 2017-01-08 01:06:24 +0100 |
---|---|---|
committer | Oliver Poignant <oliver@poignant.se> | 2017-01-08 01:06:24 +0100 |
commit | 324c3518d4b98da5bb660c62fa1503c47139c088 (patch) | |
tree | ab97540187b22d07a5df35a3b7da07b32dad52e6 /gitautodeploy/cli/config.py | |
parent | 98b6a63e343f2a6a1888f8373845b0b1bd3c89d4 (diff) | |
download | Git-Auto-Deploy-324c3518d4b98da5bb660c62fa1503c47139c088.zip Git-Auto-Deploy-324c3518d4b98da5bb660c62fa1503c47139c088.tar.gz Git-Auto-Deploy-324c3518d4b98da5bb660c62fa1503c47139c088.tar.bz2 |
Warning when running as root. Improved logging.
Diffstat (limited to 'gitautodeploy/cli/config.py')
-rw-r--r-- | gitautodeploy/cli/config.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gitautodeploy/cli/config.py b/gitautodeploy/cli/config.py index 2d2e301..3af4e3d 100644 --- a/gitautodeploy/cli/config.py +++ b/gitautodeploy/cli/config.py @@ -44,6 +44,7 @@ def get_config_defaults(): config['web-ui-whitelist'] = ['127.0.0.1'] config['web-ui-require-https'] = True config['web-ui-auth-enabled'] = True + config['web-ui-prevent-root'] = True # Record all log levels by default config['log-level'] = 'NOTSET' @@ -51,6 +52,7 @@ def get_config_defaults(): # Other options config['intercept-stdout'] = True config['ssh-keyscan'] = False + config['allow-root-user'] = False # Include details with deploy command return codes in HTTP response. Causes # to await any git pull or deploy command actions before it sends the @@ -232,6 +234,13 @@ def get_config_from_argv(argv): dest="ssl-cert", type=str) + parser.add_argument("--allow-root-user", + help="allow running as root user", + dest="allow-root-user", + default=None, + action="store_true") + + config = vars(parser.parse_args(argv)) # Delete entries for unprovided arguments |