From 530b6cf000aa230857414675278eabc08bc8be82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Wed, 12 Feb 2020 20:26:49 +0100 Subject: [PATCH] use environment for mountpoint to umount correct --- workdirfs.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workdirfs.service b/workdirfs.service index 5f741b6..832ad6f 100644 --- a/workdirfs.service +++ b/workdirfs.service @@ -2,5 +2,6 @@ Description=Daily working directory ~/Work [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}