#!/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