mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Minor fix to adduser.
Make ipa-server-install restart htppd
This commit is contained in:
@@ -53,7 +53,6 @@ def parse_options():
|
|||||||
def main():
|
def main():
|
||||||
user={}
|
user={}
|
||||||
(options, args) = parse_options()
|
(options, args) = parse_options()
|
||||||
print args
|
|
||||||
|
|
||||||
if len(args) != 1:
|
if len(args) != 1:
|
||||||
usage()
|
usage()
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ import logging
|
|||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import ipaserver.dsinstance
|
import ipaserver.dsinstance
|
||||||
import ipaserver.krbinstance
|
import ipaserver.krbinstance
|
||||||
|
import ipaserver.util.run as run
|
||||||
|
|
||||||
def parse_options():
|
def parse_options():
|
||||||
parser = OptionParser(version=VERSION)
|
parser = OptionParser(version=VERSION)
|
||||||
@@ -112,9 +113,12 @@ def main():
|
|||||||
krb.create_instance(options.ds_user, options.realm_name, host_name,
|
krb.create_instance(options.ds_user, options.realm_name, host_name,
|
||||||
options.password, options.master_password)
|
options.password, options.master_password)
|
||||||
|
|
||||||
#restart ds after the krb instance have add the sasl map
|
# Restart ds after the krb instance have add the sasl map
|
||||||
ds.restart()
|
ds.restart()
|
||||||
|
|
||||||
|
# Restart apache
|
||||||
|
run(["/sbin/server", "httpd", "restart"])
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|||||||
Reference in New Issue
Block a user