pve1,2,8,9 are dead + pve fixups
This commit is contained in:
@@ -8,7 +8,7 @@ esac
|
||||
|
||||
source /root/telegram.env
|
||||
|
||||
alias updl="rup && apt update -q && apt full-upgrade --download-only -y -qq && apt autoremove -y -qq"
|
||||
alias updl="`# rup &&` apt update -q && apt full-upgrade --download-only -y -qq && apt autoremove -y -qq"
|
||||
#TODO: reinstate restic
|
||||
alias rup="restic -q -r local:/root/jc/restic/"$HOSTNAME" -p /root/jc/restic/passwd backup /etc ~/.bash_history && restic -q -r local:/root/jc/restic/"$HOSTNAME" -p /root/jc/restic/passwd forget --prune --keep-last 14 --keep-within 3m --keep-weekly 520"
|
||||
#TODO: restic -p ~/jc/restic/passwd -r local:"??no more nas??/restic/$HOSTNAME" init
|
||||
@@ -80,7 +80,7 @@ function _on {
|
||||
}
|
||||
|
||||
# shellcheck disable=SC2120
|
||||
function off {
|
||||
function on {
|
||||
if [[ "$#" -gt 0 ]]; then
|
||||
_on "$@"
|
||||
return "$?"
|
||||
|
@@ -11,8 +11,8 @@ if [[ "$#" -ne 2 ]]; then
|
||||
fi
|
||||
storage="$1"
|
||||
vmid="$2"
|
||||
img=debian-12
|
||||
ident=d12.v2
|
||||
img=debian-13
|
||||
ident=d13.v2
|
||||
size=100G
|
||||
|
||||
# will error if vmid exists
|
||||
@@ -33,7 +33,7 @@ qm create "$vmid" \
|
||||
|
||||
# Whole script supposed to be replaced by self-service suite anyway.
|
||||
#TODO: virt-builder version is crap, replacing it with drop-in:
|
||||
wget 'https://cdimage.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.raw' -O "$img".img
|
||||
wget 'https://cdimage.debian.org/images/cloud/bookworm/latest/debian-13-genericcloud-amd64.raw' -O "$img".img
|
||||
|
||||
function cleanup {
|
||||
rm "$img".img
|
||||
|
Reference in New Issue
Block a user