shishi-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setup realm and host key during installation.


From: shishi-commit
Subject: Setup realm and host key during installation.
Date: Thu, 11 Dec 2003 06:21:26 +0100

Commit from jas 2003-12-11 06:21 CET
Setup realm and host key during installation.
Module File name Revision
shishi Makefile.am 1.58 >>> 1.59

shishi/Makefile.am   1.58 >>> 1.59
Line 44
  skeldir = $(SKELDIR)
  skel_DATA = shishi.skel
 
+ install-exec-hook:
+ @echo Initializing database and creating host key...
+ if test ! -d $(DESTDIR)$(DBDIR); then \
+   if mkdir -m 0700 -p $(DESTDIR)$(DBDIR); then \
+     if test ! -f $(DESTDIR)$(KEYDIR)/shishi.keys; then \
+       if $(DESTDIR)$(bindir)/shisa$(EXEEXT) -a > \
+ $(DESTDIR)$(KEYDIR)/shishi.keys; then \
+         echo Successfully created database and host key.; \
+       else \
+         echo Unable to create database, see $(DESTDIR)$(KEYDIR)/shishi.keys.; \
+       fi; \
+     else \
+       echo Key file $(DESTDIR)$(KEYDIR)/shishi.keys already exist.; \
+     fi; \
+   else \
+     echo Could not create directory root$(DESTDIR)$(DBDIR).; \
+   fi; \
+ else \
+   echo Database root $(DESTDIR)$(DBDIR) already exist.; \
+ fi
+
  # Maintainer targets
 
  indent:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]