potential fix for #71 (#86)

* potential fix for #71

* use systemctl now argument
This commit is contained in:
Thomas Spalinger 2021-01-08 21:38:25 +01:00 committed by GitHub
parent be71225ef7
commit 8f7939e77f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 8 deletions

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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