mebil b-3.4.1
authorMEBIL <mebil@mebil.(none)>
Tue, 13 Dec 2016 16:09:19 +0000 (17:09 +0100)
committerMEBIL <mebil@mebil.(none)>
Tue, 13 Dec 2016 16:09:19 +0000 (17:09 +0100)
etc/kivitendo.conf [new file with mode: 0755]
etc/kivitendo.control [new file with mode: 0644]
etc/kivitendo.cp [new file with mode: 0755]
etc/kivitendo.postinst [new file with mode: 0755]

diff --git a/etc/kivitendo.conf b/etc/kivitendo.conf
new file mode 100755 (executable)
index 0000000..fcbe5ce
--- /dev/null
@@ -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
+
+<Directory /opt/kivitendo-erp-3.4.1>
+  AllowOverride All
+  Options ExecCGI Includes FollowSymlinks
+  Order Allow,Deny
+  Allow from All
+</Directory>
+
+<DirectoryMatch /opt/kivitendo-erp-3.4.1/users>
+  Order Deny,Allow
+  Deny from All
+</DirectoryMatch>
diff --git a/etc/kivitendo.control b/etc/kivitendo.control
new file mode 100644 (file)
index 0000000..ef1f99a
--- /dev/null
@@ -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 <mail@wagnertech.de>
+Description: kivitendo-ERP
+
diff --git a/etc/kivitendo.cp b/etc/kivitendo.cp
new file mode 100755 (executable)
index 0000000..f86c6b0
--- /dev/null
@@ -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 (executable)
index 0000000..ef2eefd
--- /dev/null
@@ -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
+