Finish initial encfs cookbook and postgres adaptations

This commit is contained in:
2020-06-08 17:01:24 +02:00
parent 379161eb1e
commit b662c04183
8 changed files with 34 additions and 21 deletions

View File

@@ -1,4 +1,5 @@
#!/bin/sh
systemd-ask-password --echo "encfs password:" | encfs <%= @encrypted_directory %> <%= @mount_directory %> --public --stdinpass
/bin/chmod go+rx <%= @mount_directory %>
echo "Encrypted data directory mounted as <%= @mount_directory %>" > /tmp/data-dir-mounted.txt

View File

@@ -1,9 +0,0 @@
[Unit]
Description=Start <%= @service_unit %> when encrypted data directory is mounted
[Path]
PathExists=/tmp/data-dir-mounted.txt
Unit=<%= @service_unit %>
[Install]
WantedBy=multi-user.target