use environment for mountpoint to umount correct

This commit is contained in:
Jakobus Schürz 2020-02-12 20:26:49 +01:00
parent f9c03174af
commit 530b6cf000

View file

@ -2,5 +2,6 @@
Description=Daily working directory ~/Work Description=Daily working directory ~/Work
[Service] [Service]
ExecStart=/usr/bin/python3 -u /usr/local/bin/workdirfs.py Environment=MOUNTPOINT=%h/Work
ExecStart=/usr/bin/python3 -u /usr/local/bin/workdirfs.py -m $MOUNTPOINT
ExecStop=/usr/bin/fusermount -u ${MOUNTPOINT} ExecStop=/usr/bin/fusermount -u ${MOUNTPOINT}