This commit is contained in:
CanbiZ
2025-03-28 12:50:40 +01:00
parent fa8ec4c416
commit ae16c9f27b
5 changed files with 54 additions and 29 deletions

View File

@@ -20,25 +20,28 @@ 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 && 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}"
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
}
start
@@ -46,3 +49,6 @@ build_container
description
msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:xxxx${CL}"