Improve encfs cookbook
Fix some things, and prepare for path-based activation. Also, comment the buggy initial dir creation and explain manual provisioning in README for now.
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
[Unit]
|
||||
Description=EncFS for data dir
|
||||
Before=postgresql@12-main.service
|
||||
BindsTo=postgresql@12-main.service
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/local/bin/mount_encfs
|
||||
ExecStop=/bin/umount /mnt/data
|
||||
ExecStop=/usr/local/bin/unmount_encfs
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user