Skip to content

Commit

Permalink
Don't background unifi-os restart so it completes
Browse files Browse the repository at this point in the history
  • Loading branch information
kchristensen committed Sep 10, 2021
1 parent c119fb5 commit a489142
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions udm-le.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,18 @@ initial)
fi

echo 'Attempting initial certificate generation'
${PODMAN_CMD} ${LEGO_ARGS} --accept-tos run && deploy_cert && add_captive && unifi-os restart &>/dev/null &
${PODMAN_CMD} ${LEGO_ARGS} --accept-tos run && deploy_cert && add_captive && unifi-os restart &>/dev/null
;;
renew)
echo 'Attempting certificate renewal'
${PODMAN_CMD} ${LEGO_ARGS} renew --days 60 && deploy_cert
if [ "${NEW_CERT}" = "yes" ]; then
add_captive && unifi-os restart &>/dev/null &
add_captive && unifi-os restart &>/dev/null
fi
;;
bootrenew)
echo 'Attempting certificate renewal on boot'
${PODMAN_CMD} ${LEGO_ARGS} renew --days 60 && deploy_cert && add_captive && unifi-os restart &>/dev/null &
${PODMAN_CMD} ${LEGO_ARGS} renew --days 60 && deploy_cert && add_captive && unifi-os restart &>/dev/null
;;
testdeploy)
echo 'Attempting to deploy certificate'
Expand Down

0 comments on commit a489142

Please sign in to comment.