changed systemd file, added install script

This commit is contained in:
Michael Trip 2020-02-18 15:48:12 +01:00
parent 0cd6191158
commit 7a29d6c383
2 changed files with 10 additions and 0 deletions

7
install.sh Normal file
View file

@ -0,0 +1,7 @@
#!/bin/bash
cp ./vm-{seal,firstrun}.sh /usr/local/sbin/
cp ./vm-firstrun.example-config /etc/sysconfig/vm-firstrun
cp ./vm-firstrun.service /etc/systemd/system/vm-firstrun.service
chmod +x /usr/local/sbin/vm-{seal,firstrun}.sh
systemctl daemon-reload

View file

@ -9,3 +9,6 @@ ExecStart=/usr/local/sbin/vm-firstrun.sh
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
[Unit]
Wants=network-online.target
After=network.target network-online.target