Skip to content

Commit

Permalink
Clean openrc install
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo F committed Aug 10, 2024
1 parent e671a61 commit a7a9cf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tuptime-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a7a9cf1

Please sign in to comment.