mirror of
https://github.com/unifi-utilities/unifios-utilities.git
synced 2024-08-30 18:32:21 +00:00
Newlines in on-boot-script
This commit is contained in:
parent
4c33ec26d9
commit
f6f527494f
@ -1,2 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
ssh -o StrictHostKeyChecking=no root@127.0.1.1 '/mnt/data/on_boot.sh'
|
ssh -o StrictHostKeyChecking=no root@127.0.1.1 '/mnt/data/on_boot.sh'
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
echo "#!/bin/sh
|
echo "#!/bin/sh
|
||||||
ssh -o StrictHostKeyChecking=no root@127.0.1.1 '/mnt/data/on_boot.sh'" > /etc/init.d/udm.sh
|
ssh -o StrictHostKeyChecking=no root@127.0.1.1 '/mnt/data/on_boot.sh'" > /etc/init.d/udm.sh
|
||||||
chmod u+x /etc/init.d/udm.sh
|
chmod u+x /etc/init.d/udm.sh
|
||||||
@ -14,4 +15,4 @@ ExecStart=/etc/init.d/udm.sh
|
|||||||
WantedBy=multi-user.target" > /etc/systemd/system/udmboot.service
|
WantedBy=multi-user.target" > /etc/systemd/system/udmboot.service
|
||||||
|
|
||||||
systemctl enable udmboot
|
systemctl enable udmboot
|
||||||
systemctl start udmboot
|
systemctl start udmboot
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
podman cp install-unifios.sh unifi-os:/root/install-unifios.sh
|
podman cp install-unifios.sh unifi-os:/root/install-unifios.sh
|
||||||
podman exec unifi-os chmod +x /root/install-unifios.sh
|
podman exec unifi-os chmod +x /root/install-unifios.sh
|
||||||
podman exec unifi-os sh -c /root/install-unifios.sh
|
podman exec unifi-os sh -c /root/install-unifios.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user