Update to Debian Buster

This commit is contained in:
Jeremy Gardais 2020-04-09 11:29:46 +02:00
parent 98434092ab
commit 77bca840f5
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
# Template directory # Template directory
my $TEMPLATE_DIR = "/var/lib/vz/template/cache"; my $TEMPLATE_DIR = "/var/lib/vz/template/cache";
# Template file name # Template file name
my $TEMPLATE_FILE_LINK = "debian.stretch.template.tar.gz"; my $TEMPLATE_FILE_LINK = "debian.buster.template.tar.gz";
# Number of template to keep available # Number of template to keep available
my $RETENTION_TIME = "2"; my $RETENTION_TIME = "2";
@ -61,7 +61,7 @@ if ($phase eq 'job-start' ||
system ("cp -- $tarfile $TEMPLATE_DIR") == 0 || system ("cp -- $tarfile $TEMPLATE_DIR") == 0 ||
die "copy tar file as a template failed"; die "copy tar file as a template failed";
# Unlink (eg hostname=debian.stretch.template.tar.gz) # Unlink (eg hostname=debian.buster.template.tar.gz)
system ("unlink $TEMPLATE_DIR/$TEMPLATE_FILE_LINK"); system ("unlink $TEMPLATE_DIR/$TEMPLATE_FILE_LINK");
# no die cause if the previous backup exit on tarfile copy, the link might not exist # no die cause if the previous backup exit on tarfile copy, the link might not exist