Skip to content

Commit 7d87bf4

Browse files
Apply 1 suggestion(s) to 1 file(s)
Co-authored-by: Andrei Pavel <andrei@isc.org>
1 parent e3f91d9 commit 7d87bf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/admin/kea-admin.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,8 @@ pgsql_upgrade() {
418418
# thru an env
419419
export PGPASSWORD=$db_password
420420

421-
for script in "${upgrade_scripts_dir}"/upgrade*.sh
422-
do
421+
upgrade_scripts=$(find "${upgrade_scripts_dir}" -type f -name 'upgrade_*.sh' | sort -V)
422+
for script in ${upgrade_scripts}; do
423423
echo "Processing $script file..."
424424
"${script}" -U "${db_user}" -h "${db_host}" \
425425
-d "${db_name}" ${extra_arguments}

0 commit comments

Comments
 (0)