Update tinyauth

This commit is contained in:
tremor021
2025-04-24 13:21:48 +02:00
parent 780dc4c967
commit bc9827a008
2 changed files with 20 additions and 23 deletions

View File

@@ -20,28 +20,25 @@ color
catch_errors
function update_script() {
header_info
if [ ! -d /opt/tinyauth ]; then
msg_error "No ${APP} Installation Found!"
exit 1
fi
msg_info "Updating Alpine Packages"
$STD apk update
$STD apk upgrade
msg_ok "Updated Alpine Packages"
header_info
if [ ! -d /opt/tinyauth ]; then
msg_error "No ${APP} Installation Found!"
exit 1
fi
msg_info "Updating Alpine Packages"
$STD apk update
$STD apk upgrade
msg_ok "Updated Alpine Packages"
echo "DEBUG: CT_TYPE before update_script=${CT_TYPE:-UNDEFINED}"
echo "DEBUG: var_unprivileged=${var_unprivileged:-UNDEFINED}"
msg_info "Updating tinyauth"
$STD apk upgrade tinyauth
msg_ok "Updated tinyauth"
msg_info "Updating tinyauth"
$STD apk upgrade tinyauth
msg_ok "Updated tinyauth"
msg_info "Restarting tinyauth"
$STD rc-service tinyauth restart
msg_ok "Restarted tinyauth"
msg_info "Restarting tinyauth"
$STD rc-service tinyauth restart
msg_ok "Restarted tinyauth"
exit 0
exit 0
}
start