Skip to content

Commit 55dbebf

Browse files
author
Laurence Jones
authored
Changes
Changed over to restart command instead of podman
1 parent be4e693 commit 55dbebf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

udm-le.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,18 @@ initial)
7979
fi
8080

8181
echo 'Attempting initial certificate generation'
82-
${PODMAN_CMD} ${LEGO_ARGS} --accept-tos run && deploy_cert && add_captive && podman restart unifi-os &
82+
${PODMAN_CMD} ${LEGO_ARGS} --accept-tos run && deploy_cert && add_captive && unifi-os restart &>/dev/null &
8383
;;
8484
renew)
8585
echo 'Attempting certificate renewal'
8686
${PODMAN_CMD} ${LEGO_ARGS} renew --days 60 && deploy_cert
8787
if [ "${NEW_CERT}" = "yes" ]; then
88-
add_captive && podman restart unifi-os &
88+
add_captive && unifi-os restart &>/dev/null &
8989
fi
9090
;;
9191
bootrenew)
9292
echo 'Attempting certificate renewal'
93-
${PODMAN_CMD} ${LEGO_ARGS} renew --days 60 && deploy_cert && add_captive && podman restart unifi-os &
93+
${PODMAN_CMD} ${LEGO_ARGS} renew --days 60 && deploy_cert && add_captive && unifi-os restart &>/dev/null &
9494
;;
9595
testdeploy)
9696
echo 'Attempting to deploy certificate'

0 commit comments

Comments
 (0)