[Python-apps-commits] r10864 - in packages/sabnzbdplus/trunk/debian (sabnzbdplus.init)
jcfp-guest at users.alioth.debian.org
jcfp-guest at users.alioth.debian.org
Sun May 18 11:14:06 UTC 2014
Date: Sunday, May 18, 2014 @ 11:14:05
Author: jcfp-guest
Revision: 10864
init: use install on pid dir instead of mkdir/chown
Modified:
packages/sabnzbdplus/trunk/debian/sabnzbdplus.init
Modified: packages/sabnzbdplus/trunk/debian/sabnzbdplus.init
===================================================================
--- packages/sabnzbdplus/trunk/debian/sabnzbdplus.init 2014-05-16 01:28:18 UTC (rev 10863)
+++ packages/sabnzbdplus/trunk/debian/sabnzbdplus.init 2014-05-18 11:14:05 UTC (rev 10864)
@@ -77,8 +77,7 @@
prep_pid() {
PIDDIR="$(dirname "$PIDFILE")"
- [ ! -d "$PIDDIR" ] && (mkdir -p -m 0750 "$PIDDIR" || exit 1)
- chown "${USER%:*}" "$PIDDIR" || exit 1
+ install --directory --owner="${USER%:*}" --group=root --mode=0700 "$PIDDIR" || exit 1
}
start_sab() {
More information about the Python-apps-commits
mailing list