Skip to content

Commit

Permalink
You can now apply the core updates in non-interactive mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
Byloth authored and cyberium committed Jan 22, 2024
1 parent aedc0f0 commit 5fca860
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions InstallFullDB.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2803,6 +2803,21 @@ function auto_script_install_world()
true
}

# apply core updates using config file settings and normal user
function auto_script_apply_core_update()
{
show_mysql_settings
echo
echo "Applying all the latest core updates..."

if ! apply_core_update; then
false
return
fi

true
}

# do a backup
function auto_script_backup()
{
Expand Down Expand Up @@ -2929,6 +2944,14 @@ if [[ "$1" = "-World" ]]; then

exit 0
fi
# only apply core updates using config
if [[ "$1" = "-UpdateCore" ]]; then
if ! auto_script_apply_core_update; then
exit 1
fi

exit 0
fi

# only show config
if [[ "$1" = "-Config" ]]; then
Expand Down

0 comments on commit 5fca860

Please sign in to comment.