change debian.postinst to NOT run post_install.php, if $DOCKER_HOST_NAME and $DB_HOST is non-empty

like we already did that for Univention Docker installation
This commit is contained in:
Ralf Becker 2018-10-10 10:46:42 +02:00
parent 1811fd29c6
commit 414095b5f8

View File

@ -40,17 +40,20 @@ then
if test -f /etc/lsb-release && grep -q '^DISTRIB_ID="*Univention"*$' /etc/lsb-release
then
apache_conf=apache-univention.conf
fi
if [ -n "$DOCKER_HOST_NAME" -a -n "$DB_HOST" ]
then
# docker UCS setup, use appcenter join script
:
else
if test -f /etc/lsb-release && grep -q '^DISTRIB_ID="*Univention"*$' /etc/lsb-release
then
# normal UCS setup
/usr/share/egroupware/doc/rpm-build/post_install.php \
--distro univention \
--admin_user "Administrator" \
--admin_passwd "*unchanged*" 2>&1 | /usr/bin/tee -a $install_log
fi
else
# for non-interactive install let post_install generate passwords
if [ "$DEBIAN_FRONTEND" = "noninteractive" ]
@ -91,6 +94,7 @@ then
fi
fi
fi
fi
echo "EGroupware install log saved to $install_log"
# Only change permissions during initial installation, in case