Minor fix to adduser.

Make ipa-server-install restart htppd
This commit is contained in:
Karl MacMillan
-
parent 66ee656155
commit cef59d76eb
2 changed files with 5 additions and 2 deletions

View File

@@ -34,6 +34,7 @@ import logging
from optparse import OptionParser
import ipaserver.dsinstance
import ipaserver.krbinstance
import ipaserver.util.run as run
def parse_options():
parser = OptionParser(version=VERSION)
@@ -112,9 +113,12 @@ def main():
krb.create_instance(options.ds_user, options.realm_name, host_name,
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()
# Restart apache
run(["/sbin/server", "httpd", "restart"])
return 0
main()