2020-06-28 13:02:50 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2021-03-18 20:29:21 +00:00
|
|
|
# Download and install the service
|
2022-06-24 10:41:51 +00:00
|
|
|
podman exec unifi-os curl -fsSLo /lib/systemd/system/udm-boot.service https://raw.githubusercontent.com/unifi-utilities/udm-utilities/main/on-boot-script/dpkg-build-files/udm-boot.service
|
2020-06-28 13:02:50 +00:00
|
|
|
|
2021-03-18 20:29:21 +00:00
|
|
|
# If you want to manually install this offline,
|
|
|
|
# Have that file downloaded first, scp it to udm (e.g. /tmp/udm-boot.service)
|
|
|
|
# Then copy it from host to container with this command:
|
|
|
|
#
|
|
|
|
# podman cp /tmp/udm-boot.service unifi-os:/lib/systemd/system/udm-boot.service
|
2020-06-28 13:02:50 +00:00
|
|
|
|
2021-03-18 20:29:21 +00:00
|
|
|
# Start the service
|
2022-06-24 10:33:29 +00:00
|
|
|
podman exec unifi-os systemctl enable --now udm-boot.service
|