From 8f7939e77f613689a4d5048e888b9ea70349fb39 Mon Sep 17 00:00:00 2001 From: Thomas Spalinger Date: Fri, 8 Jan 2021 21:38:25 +0100 Subject: [PATCH] potential fix for #71 (#86) * potential fix for #71 * use systemctl now argument --- on-boot-script/README.old.md | 3 +-- on-boot-script/dpkg-build-files/debian/postinst | 3 +-- on-boot-script/manual-install/install-unifios.sh | 3 +-- on-boot-script/manual-install/install.sh | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/on-boot-script/README.old.md b/on-boot-script/README.old.md index 2af6464..56f1f45 100644 --- a/on-boot-script/README.old.md +++ b/on-boot-script/README.old.md @@ -56,8 +56,7 @@ 5. enable it and test ```sh - systemctl enable udmboot - systemctl start udmboot + systemctl enable --now udmboot ``` 6. back to the udm diff --git a/on-boot-script/dpkg-build-files/debian/postinst b/on-boot-script/dpkg-build-files/debian/postinst index 1844b73..20bfa04 100644 --- a/on-boot-script/dpkg-build-files/debian/postinst +++ b/on-boot-script/dpkg-build-files/debian/postinst @@ -23,8 +23,7 @@ case "$1" in 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' - deb-systemd-invoke enable udm-boot - deb-systemd-invoke start udm-boot + systemctl enable --now udm-boot ;; abort-upgrade|abort-remove|abort-deconfigure) diff --git a/on-boot-script/manual-install/install-unifios.sh b/on-boot-script/manual-install/install-unifios.sh index bc41eee..6b07721 100644 --- a/on-boot-script/manual-install/install-unifios.sh +++ b/on-boot-script/manual-install/install-unifios.sh @@ -14,5 +14,4 @@ ExecStart=/etc/init.d/udm.sh [Install] WantedBy=multi-user.target" > /etc/systemd/system/udmboot.service -systemctl enable udmboot -systemctl start udmboot +systemctl enable --now udmboot diff --git a/on-boot-script/manual-install/install.sh b/on-boot-script/manual-install/install.sh index 042d7ea..a572d12 100644 --- a/on-boot-script/manual-install/install.sh +++ b/on-boot-script/manual-install/install.sh @@ -32,8 +32,7 @@ ExecStart=/etc/init.d/udm.sh [Install] WantedBy=multi-user.target" > /etc/systemd/system/udmboot.service -systemctl enable udmboot -systemctl start udmboot +systemctl enable --now udmboot ' > /tmp/install-unifios.sh podman cp /tmp/install-unifios.sh unifi-os:/root/install-unifios.sh