Skip to content

Commit

Permalink
Fixed bug with python version and typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiboris committed Sep 8, 2016
1 parent e756317 commit 39581b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 3 additions & 1 deletion ipa-experimental-x509-auth-plugin.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Summary: A plugin which handles experimental authentication with user certificate/smart card
Name: ipa-experimental-x509-auth-plugin
Version: 1.1
Version: 1.2
Release: 1%{?dist}
BuildArch: noarch

Expand Down Expand Up @@ -38,6 +38,8 @@ install post-install.py %{buildroot}%{_sbindir}/ipa-experimental-x509-auth-enabl
%{_sbindir}/ipa-experimental-x509-auth-enable

%changelog
* Wed Sep 08 2016 Tiboris <tibor.dudlak@gmail.com>
- Fixed bug with python version and typos
* Wed Aug 24 2016 Tiboris <tibor.dudlak@gmail.com>
- Changed post-install shell script to python script
* Thu Aug 11 2016 Tiboris <tibor.dudlak@gmail.com>
Expand Down
7 changes: 3 additions & 4 deletions post-install.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/python
from shutil import copyfile
from subprocess import call
from os import sys
Expand All @@ -19,17 +19,16 @@ def run(*cmd_params):
ret = 0
try:
cmd = cmd_params[0]
print(cmd)
ret = call(cmd_params)
except Exception as e:
print("Execution of " + cmd + " failed: " + str(e), file=sys.stderr)
sys.stderr.write("Execution of " + cmd + " failed: " + str(e))
ret = -1
return ret


def configure_sssd():

copyfile(conf, orig.conf+'.orig')
copyfile(sssd_conf, sssd_conf + '.orig')

config_handle = SSSDConfig.SSSDConfig()
config_handle.import_config(sssd_conf)
Expand Down

0 comments on commit 39581b6

Please sign in to comment.