Joshua M. Boniface
09269f182c
Adds a new flag to VM metadata to allow setting the VM live migration max downtime. This will enable very busy VMs that hang live migration to have this value changed.
28 lines
564 B
Bash
Executable File
28 lines
564 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Apply PVC database migrations
|
|
# Part of the Parallel Virtual Cluster (PVC) system
|
|
|
|
export PVC_CONFIG_FILE="/etc/pvc/pvc.conf"
|
|
|
|
if [[ ! -f ${PVC_CONFIG_FILE} ]]; then
|
|
echo "Create a configuration file at ${PVC_CONFIG_FILE} before upgrading the database."
|
|
exit 1
|
|
fi
|
|
|
|
pushd /usr/share/pvc
|
|
|
|
case "$( cat /etc/debian_version )" in
|
|
10.*|11.*)
|
|
# Debian 10 & 11
|
|
./pvcapid-manage_legacy.py db upgrade
|
|
;;
|
|
*)
|
|
# Debian 12+
|
|
export FLASK_APP=./pvcapid-manage_flask.py
|
|
flask db upgrade
|
|
;;
|
|
esac
|
|
|
|
popd
|