gerd.nextcloud: only encrypt-all one time, not every time.

This commit is contained in:
eyjhb 2024-08-15 11:12:09 +02:00
parent 21c34bc554
commit ef5a62f701
No known key found for this signature in database
GPG key ID: 609F508E3239F920

View file

@ -92,7 +92,14 @@ let
${occ} encryption:enable ${occ} encryption:enable
echo "Ensuring everything is encrypted!" echo "Ensuring everything is encrypted!"
printf "y\n" | ${occ} encryption:encrypt-all if [[ ! -e ${stateDir}/.encrypt-setup ]]; then
echo "Running encrypt-all!"
printf "y\n" | ${occ} encryption:encrypt-all
touch ${stateDir}/.encrypt-setup
else
echo "Encrypt all has already ran, not running again."
fi
'';
# script for setting up tho storage quota # script for setting up tho storage quota
# possible to set based on groups # possible to set based on groups