Compare commits

..

2 commits

Author SHA1 Message Date
fruchti c14bc08deb Auto-upgrade: Abort on failure 2023-11-27 10:59:54 +01:00
fruchti 8a29fc400b Gitea: Remove landing page description 2023-11-27 10:50:03 +01:00
2 changed files with 38 additions and 39 deletions

View file

@ -9,7 +9,6 @@
<h1 class="ui icon header title"> <h1 class="ui icon header title">
{{AppName}} {{AppName}}
</h1> </h1>
<h2>{{.locale.Tr "startpage.app_desc"}}</h2>
</div> </div>
</div> </div>
</div> </div>

View file

@ -118,8 +118,7 @@ in
send_email=yes send_email=yes
email_subject="Upgrade failed (exit code $exit_code)" email_subject="Upgrade failed (exit code $exit_code)"
email_body="The system upgrade started at $start_time has failed with exit code $exit_code." email_body="The system upgrade started at $start_time has failed with exit code $exit_code."
fi else
echo " Determining package differences." | tee -a "$output_file" echo " Determining package differences." | tee -a "$output_file"
installed_packages() installed_packages()
{ {
@ -174,6 +173,7 @@ in
${nixos-rebuild} switch ${toString cfg.flags} 2>&1 | tee -a "$output_file" || exit_code=$? ${nixos-rebuild} switch ${toString cfg.flags} 2>&1 | tee -a "$output_file" || exit_code=$?
fi fi
''} ''}
fi
upgrade_output="$(cat "$output_file")" upgrade_output="$(cat "$output_file")"
rm -f "$output_file" rm -f "$output_file"