aboutsummaryrefslogtreecommitdiff
path: root/system/ZoneMinder/doinst.sh
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-05-26 07:44:48 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-05-31 10:36:16 +0700
commit5a9735ce4699ed3a80d7422da0b01d91c4b6779e (patch)
treeae2c011c4d63f84619e4b18870c57653fa513fb2 /system/ZoneMinder/doinst.sh
parentb5506779e5561e3c93950ca8f3c185364e7e77f6 (diff)
system/ZoneMinder: Remove duplicate actions + fix permission.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/ZoneMinder/doinst.sh')
-rw-r--r--system/ZoneMinder/doinst.sh14
1 files changed, 1 insertions, 13 deletions
diff --git a/system/ZoneMinder/doinst.sh b/system/ZoneMinder/doinst.sh
index 09e7f396efe53..1b16b9b8f254a 100644
--- a/system/ZoneMinder/doinst.sh
+++ b/system/ZoneMinder/doinst.sh
@@ -11,22 +11,10 @@ config() {
# Otherwise, we leave the .new copy for the admin to consider...
}
-preserve_perms() {
- NEW="$1"
- OLD="$(dirname $NEW)/$(basename $NEW .new)"
- if [ -e $OLD ]; then
- cp -a $OLD ${NEW}.incoming
- cat $NEW > ${NEW}.incoming
- mv ${NEW}.incoming $NEW
- fi
- config $NEW
-}
-
-config etc/rc.d/rc.zm.new
config etc/zm/zm.conf.new
config etc/zm/zm_apache.conf.new
config etc/logrotate.d/zm.new
-preserve_perms etc/rc.d/rc.zm.new
+config etc/rc.d/rc.zm.new
echo ""
echo " If this is a new installation, you will need to create a MySQL database"