nixos/etebase-server: do not prompt for input during automatic upgrade

This commit is contained in:
Felix Tenley 2021-04-16 12:15:18 +02:00 committed by sterni
parent 31f5263929
commit c25e8e8c96

View File

@ -192,8 +192,8 @@ in
# Auto-migrate on first run or if the package has changed
versionFile="${cfg.dataDir}/src-version"
if [[ $(cat "$versionFile" 2>/dev/null) != ${pkgs.etebase-server} ]]; then
${pythonEnv}/bin/etebase-server migrate
${pythonEnv}/bin/etebase-server collectstatic
${pythonEnv}/bin/etebase-server migrate --no-input
${pythonEnv}/bin/etebase-server collectstatic --no-input --clear
echo ${pkgs.etebase-server} > "$versionFile"
fi
'';