mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-04-28 11:22:34 +00:00
update source of pve7to8 upgrade checker script
squashed from the respective commits of the stable-7 branch, which is the canonical source for this specific script. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
37c01c901d
commit
a98193c295
@ -9,6 +9,7 @@ SOURCES = \
|
|||||||
pvenode.pm \
|
pvenode.pm \
|
||||||
pvesh.pm \
|
pvesh.pm \
|
||||||
pve6to7.pm \
|
pve6to7.pm \
|
||||||
|
pve7to8.pm \
|
||||||
|
|
||||||
all:
|
all:
|
||||||
|
|
||||||
|
@ -172,7 +172,12 @@ sub check_pve_packages {
|
|||||||
my $upgraded = 0;
|
my $upgraded = 0;
|
||||||
|
|
||||||
if ($maj > $min_pve_major) {
|
if ($maj > $min_pve_major) {
|
||||||
log_pass("already upgraded to Proxmox VE " . ($min_pve_major + 1));
|
my $pve_now = "". ($min_pve_major + 1);
|
||||||
|
my $pve_next = "". ($min_pve_major + 2);
|
||||||
|
log_pass("already upgraded to Proxmox VE ${pve_now}");
|
||||||
|
log_warn("Proxmox VE ${pve_now} got superseeded by Proxmox VE ${pve_next}.\n"
|
||||||
|
." Did you mean to use the pve${pve_now}to${pve_next} checker script?"
|
||||||
|
);
|
||||||
$upgraded = 1;
|
$upgraded = 1;
|
||||||
} elsif ($maj >= $min_pve_major && $min >= $min_pve_minor && $pkgrel >= $min_pve_pkgrel) {
|
} elsif ($maj >= $min_pve_major && $min >= $min_pve_minor && $pkgrel >= $min_pve_pkgrel) {
|
||||||
log_pass("proxmox-ve package has version >= $min_pve_ver");
|
log_pass("proxmox-ve package has version >= $min_pve_ver");
|
||||||
|
1304
PVE/CLI/pve7to8.pm
Normal file
1304
PVE/CLI/pve7to8.pm
Normal file
File diff suppressed because it is too large
Load Diff
30
bin/Makefile
30
bin/Makefile
@ -4,7 +4,17 @@ PERL_DOC_INC_DIRS=..
|
|||||||
-include /usr/share/pve-doc-generator/pve-doc-generator.mk
|
-include /usr/share/pve-doc-generator/pve-doc-generator.mk
|
||||||
|
|
||||||
SERVICES = pvestatd pveproxy pvedaemon spiceproxy pvescheduler
|
SERVICES = pvestatd pveproxy pvedaemon spiceproxy pvescheduler
|
||||||
CLITOOLS = vzdump pvesubscription pveceph pveam pvesr pvenode pvesh pve6to7
|
CLITOOLS = \
|
||||||
|
vzdump \
|
||||||
|
pvesubscription \
|
||||||
|
pveceph \
|
||||||
|
pveam \
|
||||||
|
pvesr \
|
||||||
|
pvenode \
|
||||||
|
pvesh \
|
||||||
|
pve6to7 \
|
||||||
|
pve7to8 \
|
||||||
|
|
||||||
|
|
||||||
SCRIPTS = \
|
SCRIPTS = \
|
||||||
$(SERVICES) \
|
$(SERVICES) \
|
||||||
@ -45,8 +55,20 @@ all: $(SERVICE_MANS) $(CLI_MANS)
|
|||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
|
||||||
pve6to7.1:
|
pve6to7.1:
|
||||||
printf ".TH PVE6TO7 1\n.SH NAME\npve6to7 \- Proxmox VE upgrade checker script for 6.4 to 7.x\n" > $@
|
printf ".TH PVE6TO7 1\n.SH NAME\npve6to7 \- Proxmox VE upgrade checker script for 6.4 to 7.x\n" > $@.tmp
|
||||||
printf ".SH SYNOPSIS\npve6to7 [--full]\n" >> $@
|
printf ".SH NOTE\npve6to7 is for the previous upgrade, from Proxmox VE 6 to 7, but there's a\
|
||||||
|
new Proxmox VE 8 available, see the 'pve7to8' tool.\n" >> $@.tmp
|
||||||
|
printf ".SH SYNOPSIS\npve6to7 [--full]\n" >> $@.tmp
|
||||||
|
mv $@.tmp $@
|
||||||
|
|
||||||
|
pve7to8.1:
|
||||||
|
printf ".TH PVE7TO8 1\n.SH NAME\npve7to8 \- Proxmox VE upgrade checker script for 7.4+ to current 8.x\n" > $@.tmp
|
||||||
|
printf ".SH DESCRIPTION\nThis tool will help you to detect common pitfalls and misconfguration\
|
||||||
|
before, and during the upgrade of a Proxmox VE system\n" >> $@.tmp
|
||||||
|
printf "Any failure must be addressed before the upgrade, and any waring must be addressed, \
|
||||||
|
or at least carefully evaluated, if a false-positive is suspected\n" >> $@.tmp
|
||||||
|
printf ".SH SYNOPSIS\npve7to8 [--full]\n" >> $@.tmp
|
||||||
|
mv $@.tmp $@
|
||||||
|
|
||||||
pveversion.1.pod: pveversion
|
pveversion.1.pod: pveversion
|
||||||
pveupgrade.1.pod: pveupgrade
|
pveupgrade.1.pod: pveupgrade
|
||||||
@ -73,7 +95,7 @@ install: $(SCRIPTS) $(CLI_MANS) $(SERVICE_MANS) $(BASH_COMPLETIONS) $(ZSH_COMPLE
|
|||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -f *.xml.tmp *.1 *.5 *.8 *{synopsis,opts}.adoc docinfo.xml
|
rm -f *.xml.tmp *.1 *.5 *.8 *{synopsis,opts}.adoc docinfo.xml *.tmp
|
||||||
rm -f *~ *.tmp $(CLI_MANS) $(SERVICE_MANS) *.1.pod *.8.pod
|
rm -f *~ *.tmp $(CLI_MANS) $(SERVICE_MANS) *.1.pod *.8.pod
|
||||||
rm -f *.bash-completion *.service-bash-completion *.zsh-completion *.service-zsh-completion
|
rm -f *.bash-completion *.service-bash-completion *.zsh-completion *.service-zsh-completion
|
||||||
rm -f *.api-verified *.service-api-verified
|
rm -f *.api-verified *.service-api-verified
|
||||||
|
8
bin/pve7to8
Executable file
8
bin/pve7to8
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/bin/perl
|
||||||
|
|
||||||
|
use strict;
|
||||||
|
use warnings;
|
||||||
|
|
||||||
|
use PVE::CLI::pve7to8;
|
||||||
|
|
||||||
|
PVE::CLI::pve7to8->run_cli_handler();
|
Loading…
Reference in New Issue
Block a user