Skip to content

Commit

Permalink
Ensure that post_snapshot completes before starting elevate
Browse files Browse the repository at this point in the history
Case RE-1029: Ensure that post_snapshot completes before starting elevate

Changelog:
  • Loading branch information
davelcpanelnet committed Dec 9, 2024
1 parent 6945add commit acd9a9b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/openstack-centos-7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ jobs:
cp -pv /opt/${REPODIR}/elevate-cpanel /scripts/elevate-cpanel
cp -pv /opt/${REPODIR}/.github/workflows/openstack/status_marker /scripts/status_marker
cp -pv /opt/${REPODIR}/.github/workflows/openstack/reboot_watch /scripts/reboot_watch
/usr/local/cpanel/scripts/post_snapshot --yes
while pgrep -x post_snapshot > /dev/null; do echo "Sleeping until post_snapshot is no longer running as it may be locking apt."; sleep 1; done
/scripts/restartsrv_mysql
chmod -v +x /scripts/elevate-cpanel
until /usr/local/cpanel/cpkeyclt; do echo "Retrying /usr/local/cpanel/cpkeyct until it passes..."; sleep 5; done
Expand Down

0 comments on commit acd9a9b

Please sign in to comment.