diff options
author | 2024-03-12 04:07:20 +0000 | |
---|---|---|
committer | 2024-03-12 04:07:25 +0000 | |
commit | 0872ae0dfff26bb6f240a59dd1207915dbb1413c (patch) | |
tree | c939b9d8131bdc5c207542ffafb2f83892dc824c /net-irc | |
parent | net-irc/psybnc: add missing c-ares dep (diff) | |
download | gentoo-0872ae0dfff26bb6f240a59dd1207915dbb1413c.tar.gz gentoo-0872ae0dfff26bb6f240a59dd1207915dbb1413c.tar.bz2 gentoo-0872ae0dfff26bb6f240a59dd1207915dbb1413c.zip |
net-irc/psybnc: fix bashisms in init script
I just pushed a new version so not worrying about revbump.
Closes: https://bugs.gentoo.org/848915
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-irc')
-rw-r--r-- | net-irc/psybnc/files/psybnc-oidentd.initd | 8 | ||||
-rw-r--r-- | net-irc/psybnc/files/psybnc.initd | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/net-irc/psybnc/files/psybnc-oidentd.initd b/net-irc/psybnc/files/psybnc-oidentd.initd index 354e6416c23e..b50c8b132c7c 100644 --- a/net-irc/psybnc/files/psybnc-oidentd.initd +++ b/net-irc/psybnc/files/psybnc-oidentd.initd @@ -7,19 +7,19 @@ depend() { } check_config() { - if [[ ! -f ${PSYBNC_CONFIG} ]] + if [ ! -f ${PSYBNC_CONFIG} ] then eerror "Please set \$PSYBNC_CONFIG in /etc/conf.d/psybnc!" return 1 fi - if [[ ! -d "${PSYBNC_HOME}" ]] + if [ ! -d "${PSYBNC_HOME}" ] then eerror "Please set \$PSYBNC_HOME in /etc/conf.d/psybnc!" return 1 fi - if [[ -z "${PSYBNC_USER}" ]] + if [ -z "${PSYBNC_USER}" ] then eerror "Please set \$PSYBNC_USER in /etc/conf.d/psybnc!" return 1 @@ -29,7 +29,7 @@ check_config() { start() { check_config || return 1 ebegin "Starting psyBNC" - start-stop-daemon --start --quiet --chuid "${PSYBNC_USER}" --chdir "${PSYBNC_HOME}" -e HOME="${PSYBNC_HOME}" --exec /usr/bin/psybnc -- "${PSYBNC_CONFIG}" &>/dev/null + start-stop-daemon --start --quiet --chuid "${PSYBNC_USER}" --chdir "${PSYBNC_HOME}" -e HOME="${PSYBNC_HOME}" --exec /usr/bin/psybnc -- "${PSYBNC_CONFIG}" >/dev/null 2>&1 eend $? } diff --git a/net-irc/psybnc/files/psybnc.initd b/net-irc/psybnc/files/psybnc.initd index add37167139b..da01ec9ac422 100644 --- a/net-irc/psybnc/files/psybnc.initd +++ b/net-irc/psybnc/files/psybnc.initd @@ -7,19 +7,19 @@ depend() { } check_config() { - if [[ ! -f ${PSYBNC_CONFIG} ]] + if [ ! -f ${PSYBNC_CONFIG} ] then eerror "Please set \$PSYBNC_CONFIG in /etc/conf.d/psybnc!" return 1 fi - if [[ ! -d "${PSYBNC_HOME}" ]] + if [ ! -d "${PSYBNC_HOME}" ] then eerror "Please set \$PSYBNC_HOME in /etc/conf.d/psybnc!" return 1 fi - if [[ -z "${PSYBNC_USER}" ]] + if [ -z "${PSYBNC_USER}" ] then eerror "Please set \$PSYBNC_USER in /etc/conf.d/psybnc!" return 1 @@ -29,7 +29,7 @@ check_config() { start() { check_config || return 1 ebegin "Starting psyBNC" - start-stop-daemon --start --quiet --chuid "${PSYBNC_USER}" --chdir "${PSYBNC_HOME}" --exec /usr/bin/psybnc -- "${PSYBNC_CONFIG}" &>/dev/null + start-stop-daemon --start --quiet --chuid "${PSYBNC_USER}" --chdir "${PSYBNC_HOME}" --exec /usr/bin/psybnc -- "${PSYBNC_CONFIG}" >/dev/null 2>&1 eend $? } |