diff options
author | Jeremy Davis <jeremyd@freeside.biz> | 2015-03-04 10:58:32 -0500 |
---|---|---|
committer | Jeremy Davis <jeremyd@freeside.biz> | 2015-03-04 10:58:32 -0500 |
commit | a8aa6fdd7c54ecf1be881ba0b37e1927bf1eb4ae (patch) | |
tree | ae11eec9dbe9f2d437dff1e3a741e62946eb32ce /debian | |
parent | f064f10df4e98308428b553afcdc2fd278d15290 (diff) |
Ticket #33672 Apache starts before postgres
Diffstat (limited to 'debian')
-rw-r--r-- | debian/postinst | 1 | ||||
-rwxr-xr-x | debian/rules | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/debian/postinst b/debian/postinst index 67c08357c..09f9daefd 100644 --- a/debian/postinst +++ b/debian/postinst @@ -2,6 +2,7 @@ chown -R freeside /usr/local/etc/freeside /usr/sbin/update-rc.d freeside defaults 23 01 +/sbin/insserv -d rm -fr /usr/local/etc/freeside/masondata/* exit 0 diff --git a/debian/rules b/debian/rules index 3754f8379..b50190424 100755 --- a/debian/rules +++ b/debian/rules @@ -129,6 +129,7 @@ install-stamp: build-stamp install -d $(FREESIDE_DOCUMENT_ROOT) install -d $(TMP)-webui/usr/local/etc/freeside/ + install -d $(TMP)-webui/etc/insserv/overrides/ install -d $(TMP)/usr/local/etc/freeside/ install -d $(FREESIDE_CACHE)/masondata #MASONDATA # install -d $(TMP)-lib/usr/bin @@ -172,6 +173,7 @@ install-stamp: build-stamp # Create Apache configurations install -d $(APACHE_CONF) $(MAKE) -e DESTDIR=$(APACHE_CONF) install-apache + install -o root -m 755 init.d/insserv-override-apache2 $(TMP)-webui/etc/insserv/overrides/apache2 #Hack the build dir out of apache config |