added docker UCS setup using appcenter join script

This commit is contained in:
Ralf Becker 2017-01-18 09:30:05 +01:00
parent 60a00c9764
commit 3ef7cb7005

View File

@ -34,10 +34,17 @@ then
else else
if grep -q '^DISTRIB_ID="*Univention"*$' /etc/lsb-release if grep -q '^DISTRIB_ID="*Univention"*$' /etc/lsb-release
then then
if [ -n "$DOCKER_HOST_NAME" -a -n "$DB_HOST" ]
then
# docker UCS setup, use appcenter join script
:
else
# normal UCS setup
/usr/share/egroupware/doc/rpm-build/post_install.php \ /usr/share/egroupware/doc/rpm-build/post_install.php \
--distro univention \ --distro univention \
--admin_user "Administrator" \ --admin_user "Administrator" \
--admin_passwd "*unchanged*" 2>&1 | /usr/bin/tee -a $install_log --admin_passwd "*unchanged*" 2>&1 | /usr/bin/tee -a $install_log
fi
else else
# Get configuration passwords # Get configuration passwords
db_get "egroupware/header/user" db_get "egroupware/header/user"
@ -67,6 +74,7 @@ then
--admin_user "$admin_user" \ --admin_user "$admin_user" \
--admin_passwd "$admin_password" \ --admin_passwd "$admin_password" \
--lang "$lang" \ --lang "$lang" \
--db_type mysql \
--db_root "$db_root" \ --db_root "$db_root" \
--db_root_pw "$db_root_pw" 2>&1 | /usr/bin/tee -a $install_log --db_root_pw "$db_root_pw" 2>&1 | /usr/bin/tee -a $install_log
fi fi