move files

This commit is contained in:
vvzvlad 2023-04-16 14:09:29 +07:00
parent e35f42aa4e
commit a1d7623c10
6 changed files with 5 additions and 5 deletions

View File

@ -100,20 +100,20 @@ def init_repo(c):
def create_automac_systemd(c): def create_automac_systemd(c):
apply_macs_script_path = "/usr/local/bin/apply_macs.sh" apply_macs_script_path = "/usr/local/bin/apply_macs.sh"
c.put("apply_macs.sh", apply_macs_script_path) c.put("./files/apply_macs.sh", apply_macs_script_path)
c.run(f"chmod +x {apply_macs_script_path}") c.run(f"chmod +x {apply_macs_script_path}")
c.put("apply_macs.service", "/etc/systemd/system/apply_macs.service") c.put("./files/apply_macs.service", "/etc/systemd/system/apply_macs.service")
c.run("systemctl daemon-reload") c.run("systemctl daemon-reload")
c.run("systemctl enable apply_macs.service") c.run("systemctl enable apply_macs.service")
def create_autogit_systemd(c): def create_autogit_systemd(c):
pushgit_script_path = "/mnt/data/etc/pushgit.sh" pushgit_script_path = "/mnt/data/etc/pushgit.sh"
c.put("pushgit.sh", pushgit_script_path) c.put("./files/pushgit.sh", pushgit_script_path)
c.run(f"chmod +x {pushgit_script_path}") c.run(f"chmod +x {pushgit_script_path}")
c.put("pushgit.service", "/etc/systemd/system/pushgit.service") c.put("./files/pushgit.service", "/etc/systemd/system/pushgit.service")
c.put("pushgit.timer", "/etc/systemd/system/pushgit.timer") c.put("./files/pushgit.timer", "/etc/systemd/system/pushgit.timer")
c.run("systemctl daemon-reload") c.run("systemctl daemon-reload")
c.run("systemctl enable pushgit.timer") c.run("systemctl enable pushgit.timer")