net-wireless/unifi: remove unneeded 'cd' from unifi.initd
authorBen Kohler <bkohler@gentoo.org>
Wed, 27 Jun 2018 11:53:36 +0000 (06:53 -0500)
committerBen Kohler <bkohler@gentoo.org>
Wed, 27 Jun 2018 11:54:28 +0000 (06:54 -0500)
Since start-stop-daemon is already passing --chdir, the cd before the
s-s-d call is unneeded.

Package-Manager: Portage-2.3.40, Repoman-2.3.9

net-wireless/unifi/files/unifi.initd

index 87c798b5ecd38439eb565e3b65dc9ad1bdf6f786..48fd9dd3b4a40890cad061606fc026dfc7cd0fbf 100644 (file)
@@ -15,7 +15,7 @@ depend() {
 
 start() {
        ebegin "Starting UniFi Controller"
-       cd "${UNIFI_PATH}" && start-stop-daemon --start --quiet --background --user ${UNIFI_USER} --group ${UNIFI_GROUP} --chdir ${UNIFI_PATH} --exec ${DAEMON} -- ${JAVA_OPTS} -jar ${ACE_LIB} start
+       start-stop-daemon --start --quiet --background --user ${UNIFI_USER} --group ${UNIFI_GROUP} --chdir ${UNIFI_PATH} --exec ${DAEMON} -- ${JAVA_OPTS} -jar ${ACE_LIB} start
        eend $?
 }