summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Savchenko <bircoph@gentoo.org>2020-09-06 11:55:49 +0300
committerAndrew Savchenko <bircoph@gentoo.org>2020-09-06 12:56:51 +0300
commita6770b0bb394ffbbb79690dc1a126cdad35c0540 (patch)
treeedeafb5c81ea14701347c306a2702c7b2d0234ac /app-mobilephone
parentacct-user/sobexsrv: a user for app-mobilephone/sobexsrv (diff)
downloadgentoo-a6770b0bb394ffbbb79690dc1a126cdad35c0540.tar.gz
gentoo-a6770b0bb394ffbbb79690dc1a126cdad35c0540.tar.bz2
gentoo-a6770b0bb394ffbbb79690dc1a126cdad35c0540.zip
app-mobilephone/sobexsrv: init.d fixes
- double quote ${CHROOT} variable - start-stop-daemon: migrate from --chuid to --user Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
Diffstat (limited to 'app-mobilephone')
-rw-r--r--app-mobilephone/sobexsrv/files/init.d_sobexsrv6
1 files changed, 3 insertions, 3 deletions
diff --git a/app-mobilephone/sobexsrv/files/init.d_sobexsrv b/app-mobilephone/sobexsrv/files/init.d_sobexsrv
index e02530314ca8..fa27e19ef116 100644
--- a/app-mobilephone/sobexsrv/files/init.d_sobexsrv
+++ b/app-mobilephone/sobexsrv/files/init.d_sobexsrv
@@ -1,5 +1,5 @@
#!/sbin/openrc-run
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
depend() {
@@ -17,7 +17,7 @@ check_config() {
return 1
fi
- if [ ${CHROOT} = "yes" ] ; then
+ if [ "${CHROOT}" = "yes" ] ; then
if [ ! -u /usr/bin/sobexsrv ] ; then
eerror "The \$CHROOT option requires /usr/bin/sobexsrv to be suid root!"
return 1
@@ -47,7 +47,7 @@ start() {
OPTIONS="-I -r ${INBOX} ${OPTIONS} ${SOBEXSRV_OPT}"
- start-stop-daemon --chuid ${USER}:${GROUP} --start --quiet --exec /usr/bin/sobexsrv -- $OPTIONS
+ start-stop-daemon --user ${USER}:${GROUP} --start --quiet --exec /usr/bin/sobexsrv -- $OPTIONS
eend $?
}