2014-12-09 19:01:27 +01:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
. /usr/share/debconf/confmodule
|
|
|
|
db_version 2.0
|
|
|
|
|
2015-11-09 11:44:55 +01:00
|
|
|
if grep -q '^DISTRIB_ID="*Univention"*$' /etc/lsb-release
|
2014-12-09 19:01:27 +01:00
|
|
|
then
|
|
|
|
# Univention requires non-interactive install:
|
|
|
|
# mysql credentials are read from their config
|
|
|
|
# admin user is existing "Administrator" with unchanged password
|
|
|
|
# header user is random and gets written to /root/egroupware-epl-install.log
|
|
|
|
:
|
|
|
|
else
|
|
|
|
if [ "$1" = configure -o "$1" = upgrade ]
|
|
|
|
then
|
|
|
|
db_input high "egroupware/header/user" || true
|
|
|
|
db_input high "egroupware/header/password" || true
|
|
|
|
db_input high "egroupware/admin/user" || true
|
|
|
|
db_input high "egroupware/admin/password" || true
|
|
|
|
db_input high "egroupware/lang" || true
|
|
|
|
db_input high "egroupware/db_root" || true
|
|
|
|
db_input high "egroupware/db_root_pw" || true
|
|
|
|
db_go
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|