workdirfs/setup-myuser.sh

12 lines
400 B
Bash
Raw Normal View History

2020-02-12 16:30:32 +01:00
#!/bin/sh
2020-02-13 15:31:09 +01:00
. uninstall.sh
echo "Install workdirfs for users ${USER}"
2020-02-12 16:30:32 +01:00
sudo cp workdirfs.py /usr/local/bin/workdirfs.py
cp workdirfs.service ~/.config/systemd/user/workdirfs.service
2020-02-12 18:42:39 +01:00
mkdir -pv ~/.config/systemd/user/default.target.wants/
ln -sf ../workdirfs.service ~/.config/systemd/user/default.target.wants/workdirfs.service
2020-02-12 16:30:32 +01:00
systemctl --user daemon-reload
systemctl --user restart workdirfs.service