From: MEBIL Date: Tue, 13 Dec 2016 16:09:19 +0000 (+0100) Subject: mebil X-Git-Tag: t_3.4.1-6~8 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=refs%2Fheads%2Fb-3.4.1;p=kivitendo-erp.git mebil --- diff --git a/etc/kivitendo.conf b/etc/kivitendo.conf new file mode 100755 index 000000000..fcbe5ceb0 --- /dev/null +++ b/etc/kivitendo.conf @@ -0,0 +1,18 @@ +# Configuration for kivitendo +# Kivitendo-Installattion mit FCGI +AddHandler fcgid-script .fpl +AliasMatch ^/kivitendo/[^/]+\.pl /opt/kivitendo-erp-3.4.1/dispatcher.fpl +Alias /kivitendo/ /opt/kivitendo-erp-3.4.1/ +FcgidMaxRequestLen 10485760 + + + AllowOverride All + Options ExecCGI Includes FollowSymlinks + Order Allow,Deny + Allow from All + + + + Order Deny,Allow + Deny from All + diff --git a/etc/kivitendo.control b/etc/kivitendo.control new file mode 100644 index 000000000..ef1f99a4e --- /dev/null +++ b/etc/kivitendo.control @@ -0,0 +1,9 @@ +Package: kivitendo +Version: 3.4.1-%BUILD% +Section: base +Priority: optional +Architecture: all +Depends: apache2, postgresql, libapache2-mod-fcgid +Maintainer: WagnerTech UG +Description: kivitendo-ERP + diff --git a/etc/kivitendo.cp b/etc/kivitendo.cp new file mode 100755 index 000000000..f86c6b07c --- /dev/null +++ b/etc/kivitendo.cp @@ -0,0 +1,13 @@ +#!/bin/bash +set -e + +# parameter: $1: base dir for copy (optional) + +mkdir -p $1/opt +cp -a src/kivitendo-erp $1/opt +mv $1/opt/kivitendo-erp $1/opt/kivitendo-erp-3.4.1 + +mkdir -p $1/etc/apache2/sites-available +mkdir -p $1/etc/apache2/sites-enabled +cp src/kivitendo-erp/etc/kivitendo.conf $1/etc/apache2/sites-available +cd $1/etc/apache2/sites-enabled && ln -s ../sites-available/kivitendo.conf . diff --git a/etc/kivitendo.postinst b/etc/kivitendo.postinst new file mode 100755 index 000000000..ef2eefd4f --- /dev/null +++ b/etc/kivitendo.postinst @@ -0,0 +1,17 @@ +#!/bin/sh +set -e + +# kivitendo postinst + +# check configuration file +if [ ! -e /opt/kivitendo-erp-3.4.1/config/kivitendo.conf ] +then + echo "Type new kivitendo admin password:" + read a + sed "s/admin123/$a/" /opt/kivitendo-erp-3.4.1/config/kivitendo.conf.default >/opt/kivitendo-erp-3.4.1/config/kivitendo.conf +fi + +# allow write access to some directories +chown www-data /opt/kivitendo-erp-3.4.1/users /opt/kivitendo-erp-3.4.1/templates +chgrp www-data /opt/kivitendo-erp-3.4.1/users /opt/kivitendo-erp-3.4.1/templates +