ea26c8038e
- /home/Cloud/Private/remove_dot_gitkeep - /home/Cloud/Public/remove_dot_gitkeep - /home/dot_config/docker/plugins.json - /home/dot_config/rclone/merge_rclone.conf - /home/dot_config/rclone/s3-docker.service.tmpl - /home/dot_config/rclone/s3-private.service.tmpl - /home/dot_config/rclone/s3-public.service.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_50-rclone.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_07-docker-plugins.tmpl - /home/dot_config/rclone/s3-user.service.tmpl - /home/dot_config/rclone/private_system-rclone.conf.tmpl - /home/dot_config/rclone/merge_private_rclone.conf - /home/dot_config/rclone/system/s3-private.service.tmpl - /home/dot_config/rclone/system/s3-public.service.tmpl - /home/dot_config/rclone/private_docker-rclone.conf.tmpl - /home/Cloud/symlink_Private - /home/Cloud/symlink_Public - /home/Cloud/symlink_User
15 lines
No EOL
419 B
Cheetah
15 lines
No EOL
419 B
Cheetah
[Unit]
|
|
Description=rclone S3 user service ({{ .user.username }})
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User={{ .user.username }}
|
|
ExecStartPre=/usr/bin/mkdir -p /home/{{ .user.username }}/.local/mnt/s3
|
|
ExecStart=/usr/local/bin/rclone-mount "user" "{{ .user.username }}" "s3"
|
|
ExecStop=/bin/fusermount -u /home/{{ .user.username }}/.local/mnt/s3
|
|
Restart=always
|
|
RestartSec=10
|
|
|
|
[Install]
|
|
WantedBy=default.target |