Fix non-functioning rclone service
This commit is contained in:
parent
b107cdc562
commit
613e94f50b
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ ExecStart= \
|
|||
bash -c ' \
|
||||
target="${EXPRESSION%%":"*}"; \
|
||||
dirname="${EXPRESSION#*":"}"; \
|
||||
destination="$(realpath -m --relative-base "%h/.mnt" "$dirname")"; \
|
||||
destination="`cd "%h/.mnt"; realpath -m "$dirname"`"; \
|
||||
mkdir -p "$destination"; \
|
||||
mkdir -p /tmp/rclone; \
|
||||
/usr/bin/rclone mount \
|
||||
|
@ -17,7 +17,7 @@ ExecStart= \
|
|||
--vfs-cache-mode full \
|
||||
--log-file /tmp/rclone/$target.log \
|
||||
$target: "$destination";'
|
||||
ExecStop=bash -c '/bin/fusermount -zu "$(realpath --relative-base "%h/.mnt" "${EXPRESSION#*":"}")"'
|
||||
ExecStop=bash -c '/bin/fusermount -zu "`cd "%h/.mnt"; realpath "${EXPRESSION#*":"}"`"'
|
||||
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
|
Loading…
Reference in a new issue