From 9ae39f3eff76015a45b30750cacc354d992c66b4 Mon Sep 17 00:00:00 2001 From: Joe Digilio Date: Wed, 10 Aug 2011 14:46:18 -0500 Subject: fix chmod in "bcfg2-admin init" --- src/lib/Server/Admin/Init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/Server/Admin/Init.py') diff --git a/src/lib/Server/Admin/Init.py b/src/lib/Server/Admin/Init.py index eab030cf8..9a6ad9de9 100644 --- a/src/lib/Server/Admin/Init.py +++ b/src/lib/Server/Admin/Init.py @@ -156,7 +156,7 @@ def create_conf(confpath, confdata, keypath): return try: open(confpath, "w").write(confdata) - os.chmod(keypath, stat.S_IRUSR | stat.S_IWUSR) # 0600 + os.chmod(confpath, stat.S_IRUSR | stat.S_IWUSR) # 0600 except Exception: e = sys.exc_info()[1] print("Error %s occured while trying to write configuration " -- cgit v1.2.3-1-g7c22