Change location of rclone mounts
This commit is contained in:
parent
d5387d6be4
commit
378cdc846a
4 changed files with 7 additions and 4 deletions
|
@ -11,6 +11,6 @@ else
|
|||
tempFile="$(sudo -u "$1" mktemp -d)/$fontFileBaseName";
|
||||
destination=/usr/share/font/opentype;
|
||||
|
||||
sudo -u "$1" cp "$homeDir/$NEXTCLOUD_DIR/Caskaydia Cove Regular Nerd Font Complete.otf" "$tempFile";
|
||||
sudo -u "$1" cp "$homeDir/.mnt/$NEXTCLOUD_DIR/Caskaydia Cove Regular Nerd Font Complete.otf" "$tempFile";
|
||||
cp "$tempFile" /usr/share/fonts/opentype;
|
||||
fi
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
NEXTCLOUD_DIR="${NEXTCLOUD_DIR}";
|
||||
|
||||
mkdir -p ~/.omp;
|
||||
cp ~/$NEXTCLOUD_DIR/.omp/manuel.omp.json ~/.omp/manuel.omp.json;
|
||||
cp ~/.mnt/$NEXTCLOUD_DIR/.omp/manuel.omp.json ~/.omp/manuel.omp.json;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#!/bin/bash
|
||||
sudo cp "${BASH_SOURCE%/*}/rclone.service" "${BASH_SOURCE%/*}/rclone.target" "${BASH_SOURCE%/*}/rclone@.service" /etc/systemd/user;
|
||||
systemctl enable --user rclone;
|
||||
mkdir ~/.mnt;
|
||||
touch ~/.mnt/.trackerignore;
|
||||
|
|
|
@ -9,13 +9,14 @@ ExecStart= \
|
|||
bash -c ' \
|
||||
target="${EXPRESSION%%":"*}"; \
|
||||
dirname="${EXPRESSION#*":"}"; \
|
||||
mkdir -p "%h/$dirname"; \
|
||||
destination="%h/.mnt/$dirname"; \
|
||||
mkdir -p "$destination"; \
|
||||
mkdir -p /tmp/rclone; \
|
||||
/usr/bin/rclone mount \
|
||||
--config=%h/.config/rclone/rclone.conf \
|
||||
--vfs-cache-mode full \
|
||||
--log-file /tmp/rclone/$target.log \
|
||||
$target: "%h/$dirname"'
|
||||
$target: "$destination";'
|
||||
ExecStop=bash -c '/bin/fusermount -zu "%h/${EXPRESSION#*":"}"'
|
||||
|
||||
Restart=always
|
||||
|
|
Loading…
Reference in a new issue