aboutsummaryrefslogtreecommitdiff
path: root/zot/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'zot/doinst.sh')
-rw-r--r--zot/doinst.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/zot/doinst.sh b/zot/doinst.sh
index dfef45f..623c2ea 100644
--- a/zot/doinst.sh
+++ b/zot/doinst.sh
@@ -15,3 +15,11 @@ config() {
}
config etc/zot/config.yaml.new
+
+# Keep same perms on rc.zot.new:
+if [ -e etc/rc.d/rc.zot ]; then
+ cp -a etc/rc.d/rc.zot etc/rc.d/rc.zot.new.incoming
+ cat etc/rc.d/rc.zot.new > etc/rc.d/rc.zot.new.incoming
+ mv etc/rc.d/rc.zot.new.incoming etc/rc.d/rc.zot.new
+fi
+config etc/rc.d/rc.zot.new