Recommend: php5-pecl-smb and skip interactive install for Univention (uses existing "Administrator" as 1. EGroupware user)

This commit is contained in:
Ralf Becker 2014-11-08 15:36:26 +00:00
parent bfe3011961
commit 418dc8c45b
4 changed files with 83 additions and 73 deletions

View File

@ -0,0 +1,28 @@
#! /bin/sh
set -e
. /usr/share/debconf/confmodule
db_version 2.0
if grep -q '^DISTRIB_ID="Univention"$' /etc/lsb-release
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

View File

@ -59,11 +59,12 @@ Depends: apache2,
php5-mcrypt,
php5-xsl,
${misc:Depends}
Recommends: mysql-server, php-apc, php5-tidy, mysql-client | postgresql-client
Recommends: mysql-server, php-apc, php5-pecl-smb, php5-tidy, mysql-client | postgresql-client
Suggests: egroupware-epl,
php5-ldap,
php5-mhash,
php5-auth-pam
php5-auth-pam,
php-log
Provides: egroupware-epl-addressbook, egroupware-epl-etemplate
Replaces: egroupware-core, egroupware-addressbook, egroupware-epl-addressbook, egroupware-etemplate, egroupware-epl-etemplate,
egroupware-syncml, egroupware-epl-syncml, egroupware-polls, egroupware-epl-polls, egroupware-phpsysinfo, egroupare-epl-phpsysinfo

View File

@ -16,22 +16,29 @@ webserver_soft_reload() {
}
if [ "$1" = configure -o "$1" = upgrade ]; then
#mkdir -p /var/lib/egroupware/files/users
#mkdir -p /var/lib/egroupware/files/groups
#mkdir -p /var/lib/egroupware/files/db_backup
mkdir -p /var/lib/egroupware/sessions
if [ "$1" = configure -o "$1" = upgrade ]
then
mkdir -p /var/lib/egroupware/default/files
mkdir -p /var/lib/egroupware/default/backup
config="/var/lib/egroupware/header.inc.php"
template="/usr/share/egroupware/header.inc.php.template"
# We now ask in "./config"
install_log="/root/egroupware-epl-install.log"
date >> $install_log
# Get configuration passwords.
# If upgrading, $2 contains the release currently installed, otherwise it's empty
if [ "$2" ]
then
/usr/share/egroupware/doc/rpm-build/post_install.php 2>&1 | /usr/bin/tee -a $install_log
else
if grep -q '^DISTRIB_ID="Univention"$' /etc/lsb-release
then
/usr/share/egroupware/doc/rpm-build/post_install.php \
--admin_user "Administrator" \
--admin_passwd "*unchanged*" 2>&1 | /usr/bin/tee -a $install_log
else
# Get configuration passwords
db_get "egroupware/header/user"
header_user="$RET"
db_get "egroupware/header/password"
@ -53,14 +60,6 @@ if [ "$1" = configure -o "$1" = upgrade ]; then
db_get "egroupware/db_root_pw"
db_root_pw="$RET"
install_log="/root/egroupware-epl-install.log"
date >> $install_log
#if [ "x$header_password" == "x" -a "x$admin_password" == "x" -a "x$db_root_pw" ]
# If upgrading, $2 contains the release currently installed, otherwise it's empty
if [ "$2" ]; then
/usr/share/egroupware/doc/rpm-build/post_install.php 2>&1 | /usr/bin/tee -a $install_log
else
/usr/share/egroupware/doc/rpm-build/post_install.php \
--config_user "$header_user" \
--config_passwd "$header_password" \
@ -71,27 +70,9 @@ if [ "$1" = configure -o "$1" = upgrade ]; then
--db_root "$db_root" \
--db_root_pw "$db_root_pw" 2>&1 | /usr/bin/tee -a $install_log
fi
fi
echo "EGroupware install log saved to $install_log"
# Build egroupware header manager configuration file.
#perl -MDigest::MD5 -0777 -p -e "
# s/<!-- BEGIN domain -->.*<!-- END domain -->//s;
# s/{domains}//;
# s#{SERVER_ROOT}#/usr/share/egroupware#;
# s#{INCLUDE_ROOT}#/usr/share/egroupware#;
# s/{SETUP_ACL}//;
# s/{DOMAIN_SELECTBOX}/false/;
# s/{DB_PERSISTENT}/false/;
# s/{SESSIONS_TYPE}/db/;
# s/{ENABLE_MCRYPT}/false/;
# s/{MCRYPT_VERSION}/none/;
# s/{MCRYPT_IV}/none/;
# s/{HEADER_ADMIN_PASSWORD}/Digest::MD5::md5_hex('$header_password')/e;
# # put this at the end in case someone picks a user name that matches a placeholder
# s/{HEADER_ADMIN_USER}/$header_user/;
#" < $template > $config
#fi
# Only change permissions during initial installation, in case
# someone wants a different setup.
if [ -z "$2" ]; then

Binary file not shown.