fix: Correct name of database optimizer, prevent infinite loops
This commit is contained in:
parent
59be4584d5
commit
43cb4e8810
1 changed files with 3 additions and 1 deletions
|
@ -6,7 +6,7 @@ user=friendica
|
|||
phpversion=php8.2
|
||||
dbengine=mariadb
|
||||
db=friendica
|
||||
dboptimizer=mariadboptimize
|
||||
dboptimizer=mariadb-optimize
|
||||
|
||||
bash -c "cd ${folder} && sudo -u ${user} ${phpversion} bin/console.php maintenance 1 \"Database maintenance\"" #&> /dev/null;
|
||||
|
||||
|
@ -318,6 +318,7 @@ tmp_post_media_duplicate_q="${limit}"
|
|||
tmp_post_media_duplicate_current_id=0
|
||||
until [[ "${tmp_post_media_duplicate_q}" -lt "${limit}" ]]; do
|
||||
initial_i=$(date +%s)
|
||||
tmp_post_media_duplicate_q=0
|
||||
while read -r id; do
|
||||
if [[ -s "${id}" ]]; then
|
||||
"${dbengine}" "${db}" -N -B -q -e \
|
||||
|
@ -341,6 +342,7 @@ tmp_post_user_duplicate_q="${limit}"
|
|||
tmp_post_user_duplicate_current_id=0
|
||||
until [[ "${tmp_post_user_duplicate_q}" -lt "${limit}" ]]; do
|
||||
initial_i=$(date +%s)
|
||||
tmp_post_user_duplicate_q=0
|
||||
while read -r id; do
|
||||
if [[ -s "${id}" ]]; then
|
||||
"${dbengine}" "${db}" -N -B -q -e \
|
||||
|
|
Loading…
Add table
Reference in a new issue