diff options
Diffstat (limited to 'abs/core-testing/zoneminder/zoneminder.install')
-rw-r--r-- | abs/core-testing/zoneminder/zoneminder.install | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/abs/core-testing/zoneminder/zoneminder.install b/abs/core-testing/zoneminder/zoneminder.install index c2ae861..1f3cfc0 100644 --- a/abs/core-testing/zoneminder/zoneminder.install +++ b/abs/core-testing/zoneminder/zoneminder.install @@ -52,7 +52,8 @@ post_upgrade() { # Reuse the old config [ -f /etc/zm.conf.pacnew ] && cat /etc/zm.conf | sed -e "s/^ZM_VERSION=.*$/ZM_VERSION=1.23.3/" > /tmp/zm.conf [ -f /etc/zm.conf.pacsave ] && cat /etc/zm.conf.pacsave | sed -e "s/^ZM_VERSION=.*$/ZM_VERSION=1.23.3/" > /tmp/zm.conf -[ -f /tmp/zm.conf ] && mv -f /tmp/zm.conf /etc/zm.conf && chown -R nobody.nobody /etc/zm.conf +[ -f /tmp/zm.conf ] && mv -f /tmp/zm.conf /etc/zm.conf && chown -R http.http /etc/zm.conf +add_service.sh zm } ## arg 1: the old package version pre_remove() { @@ -62,6 +63,7 @@ pre_remove() { ## arg 1: the old package version post_remove() { echo + remove_service.sh zm } # vim:set ts=2 sw=2 et: |