Priority: optional
Installed-Size: 0
Maintainer: Holger Lindemann <hli@lx-system.de>, Adrian Weibel <adrian_weibel@web.de>
-Depends: patch, apache2 | apache | lighttpd, postgresql-8.3 | postgresql-8.4, libdbi-perl, libdbd-pg-perl, libpg-perl, libarchive-zip-perl, libyaml-perl, libio-stringy-perl, libtemplate-perl, libpdf-api2-perl, libcgi-ajax-perl, liblist-moreutils-perl, libxml-writer-perl, libtext-csv-xs-perl | libtext-csv-perl, liburi-perl, libdatetime-perl, libtext-iconv-perl, libclass-accessor-perl,libemail-address-perl,libparent-perl, librose-object-perl, librose-db-perl, librose-db-object-perl
-Suggests: tetex-base | texlive-latex-base, tetex-bin | texlive-base-bin , tetex-extra | texlive-latex-extra, xpdf | evince | okular, libfcgi-perl, libapache2-mod-fastcgi
+Depends: patch, apache2 | apache | lighttpd, postgresql-8.3 | postgresql-8.4, libdbi-perl, libdbd-pg-perl, libpg-perl, libarchive-zip-perl, libyaml-perl, libio-stringy-perl, libtemplate-perl, libpdf-api2-perl, libcgi-ajax-perl, liblist-moreutils-perl, libxml-writer-perl, libtext-csv-xs-perl | libtext-csv-perl, liburi-perl, libdatetime-perl, libtext-iconv-perl, libclass-accessor-perl,libemail-address-perl,libparent-perl, librose-object-perl, librose-db-perl, librose-db-object-perl,libsort-naturally-perl,libparams-validate-perl,libfcgi-perl
+Suggests: tetex-base | texlive-latex-base, tetex-bin | texlive-base-bin , tetex-extra | texlive-latex-extra, xpdf | evince | okular, libapache2-mod-fastcgi
Homepage: http://www.lx-office.org
Description: Extended double entry accounting system for the german market.
Lx-Office is derived from sql-ledger and rewritten
db_get lx-office-erp/admin-password
ADMINPASSWORD="$RET"
- cat /etc/lx-office-erp/authentication.pl | \
- sed --expression "s/{admin_password} = /{admin_password} = '$ADMINPASSWORD';#/g" \
+ cat /etc/lx-office-erp/lx_office.conf | \
+ sed --expression "s/{admin_password} = /{admin_password} = $ADMINPASSWORD/g" \
> /tmp/1.txt
- mv /tmp/1.txt /etc/lx-office-erp/authentication.pl
+ mv /tmp/1.txt /etc/lx-office-erp/lx_office.conf
}
db_get lx-office-erp/lx-office-erp-user-postgresql-password
PASSWORD="$RET"
- cat /etc/lx-office-erp/authentication.pl | \
- sed --expression "s/'password' => /'password' => '$PASSWORD', #/g" \
+ cat /etc/lx-office-erp/lx_office.conf | \
+ sed --expression "s/'password' = /'password' = $PASSWORD/g" \
> /tmp/1.txt
cat /tmp/1.txt | \
sed --expression "s/^user = postgres/user = lxoffice/g" \
- > /etc/lx-office-erp/authentication.pl
+ > /etc/lx-office-erp/lx_office.conf
}
set_user_rights() {
chown -R www-data:www-data /usr/lib/lx-office-erp/users
chown -R www-data:www-data /usr/lib/lx-office-erp/templates
- chown www-data:www-data /etc/lx-office-erp/lx-erp.conf
- chown www-data:www-data /etc/lx-office-erp/authentication.pl
- chown www-data:www-data /etc/lx-office-erp/console.conf
+ chown www-data:www-data /etc/lx-office-erp/lx_office.conf
chown www-data:www-data /usr/lib/lx-office-erp/menu.ini
- chmod 0600 /etc/lx-office-erp/lx-erp.conf
- chmod 0600 /etc/lx-office-erp/authentication.pl
+ chmod 0600 /etc/lx-office-erp/lx_office.conf
}
disable_ipv6_on_lo_interface() {
}
mk_new_config() {
- if ! [ -f /etc/lx-office-erp/lx-erp.conf ] ; then
- cp /etc/lx-office-erp/lx-erp.conf.default /etc/lx-office-erp/lx-erp.conf
- fi
- if ! [ -f /etc/lx-office-erp/authentication.pl ] ; then
- cp /etc/lx-office-erp/authentication.pl.default /etc/lx-office-erp/authentication.pl
- fi
- if ! [ -f /etc/lx-office-erp/console.conf ] ; then
- cp /etc/lx-office-erp/console.conf.default /etc/lx-office-erp/console.conf
+ if ! [ -f /etc/lx-office-erp/lx_office.conf ] ; then
+ cp /etc/lx-office-erp/lx_office.conf.default /etc/lx-office-erp/lx_office.conf
fi
}
mk_links() {
- if ! [ -f /usr/lib/lx-office-erp/config/lx-erp.conf ] ; then
- ln -s /etc/lx-office-erp/lx-erp.conf /usr/lib/lx-office-erp/config/lx-erp.conf
- fi;
- if ! [ -f /usr/lib/lx-office-erp/config/authentication.pl ] ; then
- ln -s /etc/lx-office-erp/authentication.pl /usr/lib/lx-office-erp/config/authentication.pl
+ if ! [ -f /usr/lib/lx-office-erp/config/lx_office.conf ] ; then
+ ln -s /etc/lx-office-erp/lx_office.conf /usr/lib/lx-office-erp/config/lx_office.conf
fi
if [ -e /etc/apache2 ] ; then
if ! [ -f /etc/apache2/conf.d/lx-office-erp.apache2.conf ] ; then
echo " ! "`date`" $1 !" >> /tmp/lxo-erp.log
VER=`cat /var/www/lx-office-erp/VERSION | cut -d '.' -f2`
- if [ $VER = '6' ]; then
- echo " ! 2.6 !" >> /tmp/lxo-erp.log
- echo "Version 2.6.x"
+ if [ $VER = '7' ]; then
+ echo " ! 2.7 !" >> /tmp/lxo-erp.log
+ echo "Version 2.7.x"
mk_new_menu
else
mk_new_menu