photoprism/scripts/dist/remove-wait-online.sh
Michael Mayer c5dc0af24c Scripts: Add dist/remove-wait-online.sh
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-10-14 17:28:32 +02:00

13 lines
438 B
Bash
Executable file

#!/usr/bin/env bash
# This script disables the wait-online service to prevent the system from waiting for a network connection.
# bash <(curl -s https://raw.githubusercontent.com/photoprism/photoprism/develop/scripts/dist/remove-wait-online.sh)
set -e
echo "Disabling the wait-online service..."
sudo systemctl disable systemd-networkd-wait-online.service && \
sudo systemctl mask systemd-networkd-wait-online.service
echo "Done."