summaryrefslogtreecommitdiffstats
path: root/scripts/master_daemon.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/master_daemon.py')
-rwxr-xr-xscripts/master_daemon.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/master_daemon.py b/scripts/master_daemon.py
index 9214cfc8..19f05bf8 100755
--- a/scripts/master_daemon.py
+++ b/scripts/master_daemon.py
@@ -268,7 +268,10 @@ if os.path.isfile(args.trex_dir):
raise Exception('Given path is a file')
if not os.path.exists(args.trex_dir):
os.makedirs(args.trex_dir)
-os.chmod(args.trex_dir, 0o777)
+ os.chmod(args.trex_dir, 0o777)
+elif args.allow_update:
+ os.chmod(args.trex_dir, 0o777)
+
if not os.path.exists(tmp_dir):
os.makedirs(tmp_dir)