Files
git-sync/rootfs/home/andre/git-sync-install.sh

15 lines
535 B
Bash
Executable File

#!/bin/bash
cp /opt/git-sync/rootfs/usr/local/bin/git-sync.sh /usr/local/bin/git-sync.sh
chmod +x /usr/local/bin/git-sync.sh
cp /opt/git-sync/rootfs/etc/systemd/system/git-sync.service /etc/systemd/system/git-sync.service
chmod +x /etc/systemd/system/git-sync.service
cp /opt/git-sync/rootfs/etc/systemd/system/git-sync.timer /etc/systemd/system/git-sync.timer
chmod +x /etc/systemd/system/git-sync.timer
systemctl daemon-reload
systemctl enable --now git-sync.timer
systemctl start git-sync.service