summaryrefslogtreecommitdiffstats
path: root/gitautodeploy
diff options
context:
space:
mode:
authorOliver Poignant <oliver@poignant.se>2016-05-04 18:10:44 +0200
committerOliver Poignant <oliver@poignant.se>2016-05-04 18:10:44 +0200
commit3471db515707d722ebff4a8da7a98c64b16efc5d (patch)
tree013739a756c93733bc2715dd9ec16f737bb2279a /gitautodeploy
parentcd93746bc96a30e2582092d95fca5bcfe74090e3 (diff)
downloadGit-Auto-Deploy-3471db515707d722ebff4a8da7a98c64b16efc5d.zip
Git-Auto-Deploy-3471db515707d722ebff4a8da7a98c64b16efc5d.tar.gz
Git-Auto-Deploy-3471db515707d722ebff4a8da7a98c64b16efc5d.tar.bz2
Allow for non defined pid and log files
Diffstat (limited to 'gitautodeploy')
-rw-r--r--gitautodeploy/cli/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitautodeploy/cli/config.py b/gitautodeploy/cli/config.py
index 84c79c9..906f956 100644
--- a/gitautodeploy/cli/config.py
+++ b/gitautodeploy/cli/config.py
@@ -217,10 +217,10 @@ def init_config(config):
logger = logging.getLogger()
# Translate any ~ in the path into /home/<user>
- if 'pidfilepath' in config:
+ if 'pidfilepath' in config and config['pidfilepath']:
config['pidfilepath'] = os.path.expanduser(config['pidfilepath'])
- if 'logfilepath' in config:
+ if 'logfilepath' in config and config['logfilepath']:
config['logfilepath'] = os.path.expanduser(config['logfilepath'])
if 'repositories' not in config: