#!/bin/sh
+set -e
# kivitendo postinst
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 "AliasMatch ^/kivitendo/[^/]+\.pl /opt/kivitendo-erp-3.3.0/dispatcher.fpl"; \
+ print "Alias /kivitendo/ /opt/kivitendo-erp-3.3.0/"; \
print "FcgidMaxRequestLen 10485760"; \
- print "<Directory /opt/kivitendo>"; \
+ print "<Directory /opt/kivitendo-erp-3.3.0>"; \
print " AllowOverride All"; \
print " Options ExecCGI Includes FollowSymlinks"; \
print " Order Allow,Deny"; \
print " Allow from All"; \
print "</Directory>"; \
- print "<DirectoryMatch /opt/kivitendo/users>"; \
+ print "<DirectoryMatch /opt/kivitendo-erp-3.3.0/users>"; \
print " Order Deny,Allow"; \
print " Deny from All"; \
print "</DirectoryMatch>"; \
fi
# check configuration file
-if [ ! -e /opt/kivitendo/config/kivitendo.conf ]
+if [ ! -e /opt/kivitendo-erp-3.3.0/config/kivitendo.conf ]
then
- echo "Type admin password:"
+ echo "Type new kivitendo admin password:"
read a
- sed "s/admin123/$a/" /opt/kivitendo/config/kivitendo.conf.default >/opt/kivitendo/config/kivitendo.conf
+ sed "s/admin123/$a/" /opt/kivitendo-erp-3.3.0/config/kivitendo.conf.default >/opt/kivitendo-erp-3.3.0/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
+chown www-data /opt/kivitendo-erp-3.3.0/users /opt/kivitendo-erp-3.3.0/templates
+chgrp www-data /opt/kivitendo-erp-3.3.0/users /opt/kivitendo-erp-3.3.0/templates