Skip to content

Commit

Permalink
Refine condition check for restore
Browse files Browse the repository at this point in the history
  • Loading branch information
mreid-tt committed Oct 22, 2023
1 parent 7d14ce7 commit c121f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spk/owncloud/src/service-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ service_postinst ()
fi

# Check backup file path
if [ -n "${wizard_backup_file}" ] && [ -f "${wizard_backup_file}" ]; then
if [ "${wizard_owncloud_restore}" = "true" ] && [ -n "${wizard_backup_file}" ] && [ -f "${wizard_backup_file}" ]; then
filename=$(basename "${wizard_backup_file}")
expected_prefix="${SYNOPKG_PKGNAME}_backup_v"
# Check backup file prefix
Expand Down

0 comments on commit c121f11

Please sign in to comment.