Use Environment for Mountpoint to umount

This commit is contained in:
Jakobus Schürz 2020-02-12 20:23:50 +01:00
parent bb258450bc
commit 8de02a391e

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}