Compare commits

..

2 Commits

Author SHA1 Message Date
8531bd3ffb Update README 2022-03-16 17:38:36 +01:00
701d542111 Add missing mkdir in install script 2022-03-16 17:35:41 +01:00
2 changed files with 5 additions and 3 deletions

View File

@ -15,8 +15,9 @@ The install script then generates a Systemd mount file for each mount, with the
* `template.mount` is a template for Systemd mount units.
* `close-vault.conf.template` is a Systemd drop-in template, for auto-locking.
#### Installation
* `mounts.conf.template` contains a mount definition example, and should be copied locally to `mounts.conf`
(with your own mounts definitions).
* `install.sh` script copies Systemd templates to their destination, depending on your definitions in `mounts.conf`.
* `mounts.conf.template` contains a mount definition example, and should be copied locally in `mounts.conf.d`
as `<something>.conf`, for each of your mounts.
* `install.sh` script copies Systemd templates to their destination, depending on your definitions in `mounts.conf.d`.
### TODO
* Nothing

View File

@ -17,6 +17,7 @@ for f in $(dirname "$0")/mounts.conf.d/*.conf; do
sudo sed -i -e "s/PH_FRIENDLY/${mount[mapper]}/g" /etc/systemd/system/$mountfile
fi
if [ ${mount[autolock]} -eq 1 ]; then
sudo mkdir /etc/systemd/system/systemd-cryptsetup@${mount[mapper]}.service.d
sudo cp $(dirname "$0")/close-vault.conf.template \
/etc/systemd/system/systemd-cryptsetup@${mount[mapper]}.service.d/close-vault.conf
sudo sed -i -e "s/PH_MOUNTFILE/$mountfile/g" \