mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Scripts: Add dist/remove-wait-online.sh
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
13
scripts/dist/remove-wait-online.sh
vendored
Executable file
13
scripts/dist/remove-wait-online.sh
vendored
Executable file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/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."
|
||||||
Reference in New Issue
Block a user