implement self upgrade to the script

This commit is contained in:
ronivay
2021-08-23 16:20:32 +03:00
parent b5399a482e
commit 03f5ad9d10
2 changed files with 31 additions and 0 deletions

View File

@@ -7,6 +7,9 @@ PORT="80"
# Base dir for installation and future updates
INSTALLDIR="/opt/xo"
# Script will update itself if there's a newer version available. This assumes that script inside a git directory and remote is ronivay/XenOrchestraInstallerUpdater
SELFUPGRADE=true
# Xen Orchestra configuration file is stored in XOUSER's home directory ($HOME/.config/xo-server/config.toml) and by default will be overwritten with every update done by this script.
# You may disable this if you edit configuration by hand and don't want an update to overwrite it. Note that some of the options defined here won't be applied even if changed if this is set to false.
# options: true/false