summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSeth Vidal <skvidal@fedoraproject.org>2008-02-05 16:25:16 -0500
committerSeth Vidal <skvidal@fedoraproject.org>2008-02-05 16:25:16 -0500
commita9ecad95e33506b21c7b1a282b5c2fd4bfb693cf (patch)
tree28da6265ee34333f886ad2efe61d8000cd09db7e /scripts
parent6b9881532773f8e697437d8c6b92ce99477a0a43 (diff)
parent40ccbbf55e6fedf57629ba344dfee2e0b3ceda18 (diff)
downloadthird_party-func-a9ecad95e33506b21c7b1a282b5c2fd4bfb693cf.tar.gz
third_party-func-a9ecad95e33506b21c7b1a282b5c2fd4bfb693cf.tar.xz
third_party-func-a9ecad95e33506b21c7b1a282b5c2fd4bfb693cf.zip
Merge branch 'master' of ssh://git.fedorahosted.org/git/hosted/func
* 'master' of ssh://git.fedorahosted.org/git/hosted/func: Make hostname detection code shared. seeing if this resultis 0 is dumb, just see if it executes use socket.getfqdn instead of gethostname for sanity sake Adding a module to allow func to control certmaster via func, this will be more useful once we have support for local connections.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/certmaster-ca14
1 files changed, 2 insertions, 12 deletions
diff --git a/scripts/certmaster-ca b/scripts/certmaster-ca
index 867bd04..b3e844a 100755
--- a/scripts/certmaster-ca
+++ b/scripts/certmaster-ca
@@ -46,7 +46,7 @@ def main(args):
errorprint('Must be root to run certmaster-ca')
return 1
- cm = func.certmaster.CertMaster('/etc/func/certmaster.conf')
+ cm = func.certmaster.CertMaster()
(opts, args) = parseargs(args)
@@ -84,17 +84,7 @@ def main(args):
return 1
for hn in args:
- csrglob = '%s/%s.csr' % (cm.cfg.csrroot, hn)
- csrs = glob.glob(csrglob)
- certglob = '%s/%s.cert' % (cm.cfg.certroot, hn)
- certs = glob.glob(certglob)
- if not csrs and not certs:
- errorprint('No match for %s to clean up' % hn)
- continue
-
- for fn in csrs + certs:
- print 'Cleaning out %s for host matching %s' % (fn, hn)
- os.unlink(fn)
+ cm.remove_this_host(hn)
return 0