Imported Debian patch 4.6.2-4~numeezy
This commit is contained in:
committed by
Mario Fetka
parent
8ff3be4216
commit
c86f4cfde4
7
debian/tests/control
vendored
Normal file
7
debian/tests/control
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
Tests: server-install
|
||||
Depends:
|
||||
@,
|
||||
Restrictions:
|
||||
allow-stderr,
|
||||
isolation-container,
|
||||
needs-root,
|
||||
39
debian/tests/server-install
vendored
Normal file
39
debian/tests/server-install
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
#!/bin/sh
|
||||
|
||||
# hack for lxc
|
||||
IP=`ip route get 1.1.1.1 | sed -n -e's/.*src //; s/ .*//; p; q'`
|
||||
HOSTNAME=`cat /etc/hosts| grep '127.0.1.1' | awk '{print $NF; exit}'`
|
||||
echo "$IP $HOSTNAME.debci $HOSTNAME" >> /etc/hosts
|
||||
|
||||
echo "IP address is $IP"
|
||||
echo "Hostname is: $HOSTNAME"
|
||||
echo "/etc/hostname has:"
|
||||
cat /etc/hostname
|
||||
echo "/etc/hosts has:"
|
||||
cat /etc/hosts
|
||||
|
||||
if [ ! -d /etc/systemd/system/pki-tomcatd.target.wants ]; then
|
||||
echo "WHOOPS: Creating /etc/systemd/system/pki-tomcatd.target.wants"
|
||||
mkdir /etc/systemd/system/pki-tomcatd.target.wants
|
||||
fi
|
||||
if [ ! -d /etc/systemd/system/pki-tomcatd-nuxwdog.target.wants ]; then
|
||||
echo "WHOOPS: Creating /etc/systemd/system/pki-tomcatd-nuxwdog.target.wants"
|
||||
mkdir /etc/systemd/system/pki-tomcatd-nuxwdog.target.wants
|
||||
fi
|
||||
|
||||
ipa-server-install \
|
||||
-U \
|
||||
-r DEBCI \
|
||||
-n debci \
|
||||
-p Secret123 \
|
||||
-a Secret123 \
|
||||
--ip-address=$IP \
|
||||
--setup-dns \
|
||||
--no-forwarders \
|
||||
--hostname=$HOSTNAME.debci
|
||||
|
||||
if [ $? != 0 ]; then
|
||||
echo ">>>>> IPASERVER log >>>>>>>"
|
||||
cat /var/log/ipaserver-install.log
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user