workdirfs/setup.sh
2020-02-12 17:30:08 +01:00

9 lines
386 B
Bash
Executable file

#!/bin/sh
sudo cp workdirfs.py /usr/local/bin/workdirfs.py
sudo cp workdirfs.service /etc/systemd/user/workdirfs.service
sudo mkdir -pv /etc/systemd/user/default.target.wants/
sudo ln -sf ../workdirfs.service /etc/systemd/user/default.target.wants/workdirfs.service
sudo cp workdirfs.config /etc/workdirfs.conf
systemctl --user daemon-reload
systemctl --user restart workdirfs.service