From: Ivan Kohler Date: Wed, 24 Jan 2018 17:08:55 +0000 (-0800) Subject: fix postinst? X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=86ab93725f1e7b0cf6f88bea5370bc35a20b08a5 fix postinst? --- diff --git a/debian/freeside-webui.postinst b/debian/freeside-webui.postinst new file mode 100644 index 000000000..8dd2baaf5 --- /dev/null +++ b/debian/freeside-webui.postinst @@ -0,0 +1,10 @@ +#!/bin/sh + +chown -R freeside /usr/local/etc/freeside +rm -fr /usr/local/etc/freeside/masondata/* + +#XXX systemd equivalent (start apache after postgres) +/sbin/insserv -d + +exit 0 + diff --git a/debian/freeside.postinst b/debian/freeside.postinst new file mode 100644 index 000000000..bdbb7a8d6 --- /dev/null +++ b/debian/freeside.postinst @@ -0,0 +1,7 @@ +#!/bin/sh + +#probably not needed with systemd +/usr/sbin/update-rc.d freeside defaults 23 01 + +exit 0 +