From: Michael Wagner Date: Mon, 7 Mar 2016 15:50:18 +0000 (+0100) Subject: posaune X-Git-Tag: t2~3 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=9587eeae6e2c051d49a518318f37c7a4f892d8a5;p=kivitendo-erp.git posaune --- diff --git a/etc/kivitendo.control b/etc/kivitendo.control new file mode 100644 index 000000000..3f38f91bd --- /dev/null +++ b/etc/kivitendo.control @@ -0,0 +1,9 @@ +Package: kivitendo +Version: 3.0.0-%BUILD% +Section: base +Priority: optional +Architecture: all +Depends: +Maintainer: WagnerTech UG +Description: kivitendo-ERP + diff --git a/etc/kivitendo.postinst b/etc/kivitendo.postinst new file mode 100755 index 000000000..1198bfd09 --- /dev/null +++ b/etc/kivitendo.postinst @@ -0,0 +1,48 @@ +#!/bin/sh + +# kivitendo postinst + +# add sysal site to apache configuration +cd /etc/apache2/sites-available +if ! grep "#kivitendo#" default >/dev/null +then + awk '/<.Virtual/ { print ""; \ + print "#kivitendo#"; \ + print "# Configuration for kivitendo"; \ + print "# Kivitendo-Installattion mit FCGI"; \ + print "AddHandler fcgid-script .fpl"; \ + print "AliasMatch ^/kivitendo/[^/]+\.pl /opt/kivitendo/dispatcher.fpl"; \ + print "Alias /kivitendo/ /opt/kivitendo/"; \ + print "FcgidMaxRequestLen 10485760"; \ + + print ""; \ + print " AllowOverride All"; \ + print " Options ExecCGI Includes FollowSymlinks"; \ + print " Order Allow,Deny"; \ + print " Allow from All"; \ + print ""; \ + + print ""; \ + print " Order Deny,Allow"; \ + print " Deny from All"; \ + print ""; \ + print "#kivitendo_end#"; } \ + {print $0;}' default >xxx + + mv xxx default + echo "/etc/apache2/sites-available/default changed" + /etc/init.d/apache2 restart +fi + +# check configuration file +if [ ! -e /opt/kivitendo/config/kivitendo.conf ] +then + echo "Type admin password:" + read a + sed "s/admin123/$a/" /opt/kivitendo/config/kivitendo.conf.default >/opt/kivitendo/config/kivitendo.conf +fi + +# allow write access to some directories +chown www-data /opt/kivitendo/users /opt/kivitendo/templates +chgrp www-data /opt/kivitendo/users /opt/kivitendo/templates +