summaryrefslogtreecommitdiffstats
path: root/ipa-server
diff options
context:
space:
mode:
Diffstat (limited to 'ipa-server')
-rw-r--r--ipa-server/Makefile6
-rwxr-xr-xipa-server/freeipa-server.spec1
-rw-r--r--ipa-server/freeipa-server.spec.in1
-rw-r--r--ipa-server/ipa-install/Makefile3
-rw-r--r--ipa-server/ipa-install/ipa-server-install2
-rw-r--r--ipa-server/ipaserver/dsinstance.py2
6 files changed, 9 insertions, 6 deletions
diff --git a/ipa-server/Makefile b/ipa-server/Makefile
index 8281a552e..5ca5caf71 100644
--- a/ipa-server/Makefile
+++ b/ipa-server/Makefile
@@ -1,5 +1,9 @@
SUBDIRS=ipa-install xmlrpc-server ipa-kpasswd ipa-slapi-plugins
-PYTHONDIR=$(DESTDIR)/usr/share/ipa/ipaserver
+
+SHAREDIR=$(DESTDIR)/usr/share/ipa
+PYTHONDIR=$(SHAREDIR)/ipaserver
+SBINDIR=$(DESTDIR)/usr/sbin
+
all:
@for subdir in $(SUBDIRS); do \
diff --git a/ipa-server/freeipa-server.spec b/ipa-server/freeipa-server.spec
index a49150795..be16796e1 100755
--- a/ipa-server/freeipa-server.spec
+++ b/ipa-server/freeipa-server.spec
@@ -41,7 +41,6 @@ rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_sbindir}/ipa-server-install
-%{_sbindir}/ipa-server-setupssl
%{_sbindir}/ipa_kpasswd
%attr(755,root,root) %{_initrddir}/ipa-kpasswd
diff --git a/ipa-server/freeipa-server.spec.in b/ipa-server/freeipa-server.spec.in
index e5d0ac3b4..ac44e6d9a 100644
--- a/ipa-server/freeipa-server.spec.in
+++ b/ipa-server/freeipa-server.spec.in
@@ -41,7 +41,6 @@ rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_sbindir}/ipa-server-install
-%{_sbindir}/ipa-server-setupssl
%{_sbindir}/ipa_kpasswd
%attr(755,root,root) %{_initrddir}/ipa-kpasswd
diff --git a/ipa-server/ipa-install/Makefile b/ipa-server/ipa-install/Makefile
index 2524baf31..40a39b576 100644
--- a/ipa-server/ipa-install/Makefile
+++ b/ipa-server/ipa-install/Makefile
@@ -1,3 +1,4 @@
+SHAREDIR=$(DESTDIR)/usr/share/ipa
SBINDIR=$(DESTDIR)/usr/sbin
all: ;
@@ -5,7 +6,7 @@ all: ;
install:
-mkdir $(SBINDIR)
install -m 755 ipa-server-install $(SBINDIR)
- install -m 755 ipa-server-setupssl $(SBINDIR)
+ install -m 755 ipa-server-setupssl $(SHAREDIR)
$(MAKE) -C share $@
$(MAKE) -C test $@
diff --git a/ipa-server/ipa-install/ipa-server-install b/ipa-server/ipa-install/ipa-server-install
index d4e55302b..54da6856b 100644
--- a/ipa-server/ipa-install/ipa-server-install
+++ b/ipa-server/ipa-install/ipa-server-install
@@ -134,7 +134,7 @@ def main():
if host_name == "":
print ""
host_name = raw_input("Please provide a Fully Qualified name to use for your system [master.example.com]: ")
- if host_name != "":
+ if host_name == "":
host_name = "master.example.com"
if len(host_name.split(".")) < 2 or host_name == "localhost.localdomain":
diff --git a/ipa-server/ipaserver/dsinstance.py b/ipa-server/ipaserver/dsinstance.py
index 1f0704486..bb1f021a3 100644
--- a/ipa-server/ipaserver/dsinstance.py
+++ b/ipa-server/ipaserver/dsinstance.py
@@ -156,7 +156,7 @@ class DsInstance:
def __enable_ssl(self):
logging.debug("configuring ssl for ds instance")
dirname = self.config_dirname()
- args = ["/usr/sbin/ipa-server-setupssl", self.dm_password,
+ args = ["/usr/share/ipa/ipa-server-setupssl", self.dm_password,
dirname, self.host_name]
run(args)
logging.debug("done configuring ssl for ds instance")