summaryrefslogtreecommitdiffstats
path: root/ipsilon/install
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-04-17 23:59:35 -0400
committerSimo Sorce <simo@redhat.com>2014-04-21 00:05:05 -0400
commita20178b055e783b4146925596e815a05d82b0ac6 (patch)
tree04324bddcda383d06c3271aaa56829c261a9b369 /ipsilon/install
parentd7e4bbbf32e5bfae87bfa686fbb5f86efcb04ee1 (diff)
downloadipsilon.git-a20178b055e783b4146925596e815a05d82b0ac6.tar.gz
ipsilon.git-a20178b055e783b4146925596e815a05d82b0ac6.tar.xz
ipsilon.git-a20178b055e783b4146925596e815a05d82b0ac6.zip
Move fixing files functionality to tools
Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'ipsilon/install')
-rwxr-xr-xipsilon/install/ipsilon-client-install11
1 files changed, 1 insertions, 10 deletions
diff --git a/ipsilon/install/ipsilon-client-install b/ipsilon/install/ipsilon-client-install
index 8802ea1..f49e351 100755
--- a/ipsilon/install/ipsilon-client-install
+++ b/ipsilon/install/ipsilon-client-install
@@ -133,16 +133,7 @@ def saml2():
with open(SAML2_CONFFILE, 'w+') as f:
f.write(hunk)
- pw = pwd.getpwnam(args['httpd_user'])
- for root, dirs, files in os.walk(SAML2_HTTPDIR):
- for name in dirs:
- target = os.path.join(root, name)
- os.chown(target, pw.pw_uid, pw.pw_gid)
- os.chmod(target, 0700)
- for name in files:
- target = os.path.join(root, name)
- os.chown(target, pw.pw_uid, pw.pw_gid)
- os.chmod(target, 0600)
+ files.fix_user_dirs(SAML2_HTTPDIR, args['httpd_user'])
logger.info('SAML Service Provider configured.')
logger.info('You should be able to restart the HTTPD server and' +