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

@ -9,7 +9,7 @@ Homepage: http://www.stylite.de/EPL
Package: egroupware-epl
Architecture: all
Depends:
egroupware-epl-core (= ${binary:Version}),
egroupware-epl-core (= ${binary:Version}),
egroupware-epl-egw-pear (= ${binary:Version}),
egroupware-epl-jdots (= ${binary:Version}),
egroupware-epl-pixelegg (= ${binary:Version}),
@ -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
@ -190,7 +191,7 @@ Description: web-based groupware suite - importexport application
.
This eGroupWare application is a framework for egroupware to handle
imports and exports.
Package: egroupware-epl-infolog
Architecture: all
Depends: egroupware-epl-core (>= ${binary:Version}), ${misc:Depends}
@ -237,7 +238,7 @@ Description: web-based groupware suite - notifications
.
This package contains the EGroupware notifications, provided as an
EGroupware application.
Package: egroupware-epl-phpbrain
Architecture: all
Depends: egroupware-epl-core (>= ${binary:Version}),
@ -311,7 +312,7 @@ Description: web-based groupware suite - site manager application
Package: egroupware-epl-timesheet
Architecture: all
Depends: egroupware-epl-core (>= ${binary:Version}),
Depends: egroupware-epl-core (>= ${binary:Version}),
${misc:Depends}
Suggests: egroupware-epl-projectmanager
Conflicts: egroupware-timesheet
@ -336,7 +337,7 @@ Description: web-based groupware suite - tracker application
Package: egroupware-epl-wiki
Architecture: all
Depends: egroupware-epl-core (>= ${binary:Version}),
Depends: egroupware-epl-core (>= ${binary:Version}),
${misc:Depends}
Conflicts: egroupware-wiki
Replaces: egroupware-wiki

View File

@ -16,81 +16,62 @@ 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.
db_get "egroupware/header/user"
header_user="$RET"
db_get "egroupware/header/password"
header_password="$RET"
# Get first egroupware user / pw
db_get "egroupware/admin/user"
admin_user="$RET"
db_get "egroupware/admin/password"
admin_password="$RET"
# Get egroupware language
db_get "egroupware/lang"
lang="$RET"
# Get mysql root / pw
db_get "egroupware/db_root"
db_root="$RET"
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
# 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
/usr/share/egroupware/doc/rpm-build/post_install.php \
--config_user "$header_user" \
--config_passwd "$header_password" \
--admin_user "$admin_user" \
--admin_passwd "$admin_password" \
--lang "$lang" \
--db_type mysql \
--db_root "$db_root" \
--db_root_pw "$db_root_pw" 2>&1 | /usr/bin/tee -a $install_log
fi
echo "EGroupware install log saved to $install_log"
# Get configuration passwords
db_get "egroupware/header/user"
header_user="$RET"
db_get "egroupware/header/password"
header_password="$RET"
# 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
# Get first egroupware user / pw
db_get "egroupware/admin/user"
admin_user="$RET"
db_get "egroupware/admin/password"
admin_password="$RET"
# Get egroupware language
db_get "egroupware/lang"
lang="$RET"
# Get mysql root / pw
db_get "egroupware/db_root"
db_root="$RET"
db_get "egroupware/db_root_pw"
db_root_pw="$RET"
/usr/share/egroupware/doc/rpm-build/post_install.php \
--config_user "$header_user" \
--config_passwd "$header_password" \
--admin_user "$admin_user" \
--admin_passwd "$admin_password" \
--lang "$lang" \
--db_type mysql \
--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"
# Only change permissions during initial installation, in case
# someone wants a different setup.

Binary file not shown.