From a7a9cf170a82094fad7564d57a989ff7e291a89d Mon Sep 17 00:00:00 2001 From: Ricardo F Date: Sat, 10 Aug 2024 16:15:40 +0200 Subject: [PATCH] Clean openrc install --- tuptime-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tuptime-install.sh b/tuptime-install.sh index 24b5e51..f4b4de9 100644 --- a/tuptime-install.sh +++ b/tuptime-install.sh @@ -179,8 +179,8 @@ elif [ "${PID1}" = 'init' ] && [ -f /lib/lsb/init-functions ]; then update-rc.d tuptime defaults echo ' [OK]' -elif { [ "${PID1}" = 'init' ] && [ -f /etc/rc.conf ]; } || [ "${PID1}" = 'openrc-init' ]; then - echo "+ Copying OpenRC file for init" +elif ([ "${PID1}" = 'init' ] && [ -f /etc/rc.conf ]) || [ "${PID1}" = 'openrc-init' ]; then + echo "+ Copying OpenRC file" install -m 755 "${F_TMP1}"/src/openrc/tuptime /etc/init.d/ rc-update add tuptime default rc-service tuptime start