Skip to content

Commit

Permalink
Update script in order to got from version before 14.0
Browse files Browse the repository at this point in the history
/usr/local/pf/addons/exportable-backup.sh is not present before 14.1, so we need to use theold way if file is not here.
  • Loading branch information
JeGoi authored Jan 29, 2025
1 parent 5265e99 commit 231aac0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion addons/full-upgrade/run-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,12 @@ echo "Stopping the PacketFence services"
main_splitter
export_to="/root/packetfence-pre-upgrade-backup-`date '+%s'`.tgz"
echo "Generating full pre-upgrade backup to $export_to"
/usr/local/pf/addons/exportable-backup.sh -f $export_to
if [ -f /usr/local/pf/addons/exportable-backup.sh ]; then
/usr/local/pf/addons/exportable-backup.sh -f $export_to
else
/usr/local/pf/addons/backup-and-maintenance.sh
/usr/local/pf/addons/full-import/export.sh $export_to
fi

main_splitter
INCLUDE_OS_UPDATE="${INCLUDE_OS_UPDATE:-}"
Expand Down

0 comments on commit 231aac0

Please sign in to comment.