mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 01:16:10 +00:00
docs: the README and doc/ checked against the code; an installer rerun keeps the noVNC port
A review of every Markdown file against the code found steps that would fail and statements that are no longer true: - RHEL computes set up by hand enabled only virtqemud: the storage, network and other host pages need their daemons' sockets too; - moving to a new machine migrated without /etc/default/webvirtcloud (a PostgreSQL panel would migrate the wrong database), and needed a node_id an older backup may lack; - a rollback left update.sh's marker of a stopped update, which the next update would have gone on with; - the manual installs' group and mode lines failed on hosts without one of the groups or without sqlite; RHEL's CodeReady Builder repository; - the NFS backup target was defined on the user's libvirt connection; - the off-site restore picked a backup by name, not time; - the features, the jobs list, the console token, the alert webhook (ntfy does not take it), the API's submission_key, WS_* in the update, the update's last failure, the doc/ API and app tables, permissions of templates, protected VMs, backups and the .vv file. An installer rerun kept WS_PORT in data/local_settings.py but pointed nginx at that run's answer: it now takes the kept port.
This commit is contained in:
parent
29d4bc2e7a
commit
cdf1baed2e
4 changed files with 52 additions and 45 deletions
|
|
@ -286,7 +286,11 @@ ALLOWED_HOSTS += $(wvc_allowed_hosts "$fqdn" $host_ips)
|
|||
CSRF_TRUSTED_ORIGINS += [$origins]
|
||||
EOF
|
||||
case $? in
|
||||
1) echo "* Keeping the existing data/local_settings.py." ;;
|
||||
1) echo "* Keeping the existing data/local_settings.py."
|
||||
# nginx forwards to the noVNC port it gives, not to this run's answer
|
||||
# (its last WS_PORT, else the default noVNC uses)
|
||||
kept_port=$(sed -n 's/^WS_PORT *= *\([0-9]\{1,5\}\)\b.*/\1/p' "$APP_PATH/data/local_settings.py" | tail -n 1)
|
||||
novncd_port=${kept_port:-6080} ;;
|
||||
2) echo "data/local_settings.py could not be written." >&2; exit 1 ;;
|
||||
esac
|
||||
|
||||
|
|
@ -492,7 +496,7 @@ fi
|
|||
echo -n " Q. NOVNC service port number?(Default: 6080) "
|
||||
read -r novncd_port
|
||||
if [ -z "$novncd_port" ]; then
|
||||
readonly novncd_port=6080
|
||||
novncd_port=6080
|
||||
elif [[ $novncd_port =~ ^[0-9]{1,5}$ ]] && (( 10#$novncd_port >= 1 && 10#$novncd_port <= 65535 )); then
|
||||
novncd_port=$((10#$novncd_port)) # 06080 is no Python number
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue