diff --git a/on-boot-script/dpkg-build-files/debian/postinst b/on-boot-script/dpkg-build-files/debian/postinst index 20bfa04..44f05fd 100644 --- a/on-boot-script/dpkg-build-files/debian/postinst +++ b/on-boot-script/dpkg-build-files/debian/postinst @@ -17,13 +17,12 @@ set -e # for details, see https://www.debian.org/doc/debian-policy/ or # the debian-policy package +alias deb-systemd-invoke='systemctl --no-block --' case "$1" in configure) scp -P "$(cat /etc/unifi-os/ssh_proxy_port)" -o StrictHostKeyChecking=no -q /usr/share/udm-boot/on_boot.sh root@localhost:/mnt/data/on_boot.sh /sbin/ssh-proxy 'chmod +x /mnt/data/on_boot.sh && mkdir -p /mnt/data/on_boot.d' - - systemctl enable --now udm-boot ;; abort-upgrade|abort-remove|abort-deconfigure)