gerd.nextcloud: only encrypt-all one time, not every time.
This commit is contained in:
parent
21c34bc554
commit
ef5a62f701
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue