summaryrefslogtreecommitdiffstats
path: root/gitautodeploy
diff options
context:
space:
mode:
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: