X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/141a56b066b84c9433f007409de8431ed160825c..97e26b6903f9049ecbaec55266bad5e362de4408:/debian/kivitendo.postinst diff --git a/debian/kivitendo.postinst b/debian/kivitendo.postinst new file mode 100755 index 000000000..a35f4f6c8 --- /dev/null +++ b/debian/kivitendo.postinst @@ -0,0 +1,22 @@ +#!/bin/sh +set -e + +# kivitendo postinst + +version="3.5.4" + +# check configuration file +if [ ! -e /opt/kivitendo-erp-$version/config/kivitendo.conf ] +then + echo "Type new kivitendo admin password:" + read a + sed "s/admin123/$a/" /opt/kivitendo-erp-$version/config/kivitendo.conf.default >/opt/kivitendo-erp-$version/config/kivitendo.conf +fi + +# allow write access to some directories +chown www-data /opt/kivitendo-erp-$version/users /opt/kivitendo-erp-$version/templates +chgrp www-data /opt/kivitendo-erp-$version/users /opt/kivitendo-erp-$version/templates + +# call installation check +/opt/kivitendo-erp-$version/scripts/installation_check.pl +