From 06ca56519d01e52f3937becc5388b6d8c32edfad Mon Sep 17 00:00:00 2001 From: akanealw Date: Fri, 18 Aug 2023 17:08:31 -0500 Subject: [PATCH] updated scripts --- .../bashscripts/debian/download-debian-essentials.sh | 2 +- .../proxmox/all-cloud-images-download-import.sh | 12 ++++++------ .../proxmox/download-proxmox-essentials.sh | 12 ++++++------ files/bashscripts/proxmox/proxmox-shutdown-script.sh | 3 --- 4 files changed, 13 insertions(+), 16 deletions(-) delete mode 100755 files/bashscripts/proxmox/proxmox-shutdown-script.sh diff --git a/files/bashscripts/debian/download-debian-essentials.sh b/files/bashscripts/debian/download-debian-essentials.sh index 4a816a8..a071f99 100755 --- a/files/bashscripts/debian/download-debian-essentials.sh +++ b/files/bashscripts/debian/download-debian-essentials.sh @@ -1,6 +1,6 @@ #!/bin/bash rm /home/akanealw/scripts/debian-essentials* > /dev/null 2>&1 mkdir /home/akanealw/scripts > /dev/null 2>&1 -wget -O /home/akanealw/scripts/debian-essentials.sh https://aknlw.com/debian-essentials +wget -qO /home/akanealw/scripts/debian-essentials.sh https://aknlw.com/debian-essentials chmod +x /home/akanealw/scripts/debian-essentials.sh sudo /home/akanealw/scripts/debian-essentials.sh diff --git a/files/bashscripts/proxmox/all-cloud-images-download-import.sh b/files/bashscripts/proxmox/all-cloud-images-download-import.sh index 933ea91..5377038 100755 --- a/files/bashscripts/proxmox/all-cloud-images-download-import.sh +++ b/files/bashscripts/proxmox/all-cloud-images-download-import.sh @@ -6,7 +6,7 @@ rm *.qcow2 > /dev/null 2>&1 rm *.tar.xz > /dev/null 2>&1 # debian 11 bullseye cloud -wget -q -O debian-11-genericcloud-amd64-daily.tar.xz https://cloud.debian.org/images/cloud/bullseye/daily/latest/debian-11-genericcloud-amd64-daily.tar.xz +wget -qO debian-11-genericcloud-amd64-daily.tar.xz https://cloud.debian.org/images/cloud/bullseye/daily/latest/debian-11-genericcloud-amd64-daily.tar.xz tar --transform='s/disk/debian-11-genericcloud-amd64-daily/g' -xvf debian-11-genericcloud-amd64-daily.tar.xz #rm debian-11-genericcloud-amd64-daily.tar.xz #mv disk.raw debian-11-genericcloud-amd64-daily.raw @@ -22,7 +22,7 @@ sleep 2 sleep 2 # debian 12 bookworm cloud -wget -q -O debian-12-genericcloud-amd64-daily.tar.xz https://cloud.debian.org/images/cloud/bookworm/daily/latest/debian-12-generic-amd64-daily.tar.xz +wget -qO debian-12-genericcloud-amd64-daily.tar.xz https://cloud.debian.org/images/cloud/bookworm/daily/latest/debian-12-generic-amd64-daily.tar.xz tar --transform='s/disk/debian-12-genericcloud-amd64-daily/g' -xvf debian-12-genericcloud-amd64-daily.tar.xz #rm debian-11-genericcloud-amd64-daily.tar.xz #mv disk.raw debian-11-genericcloud-amd64-daily.raw @@ -38,7 +38,7 @@ sleep 2 sleep 2 # ubuntu focal 20.04 -wget -q -O focal-server-cloudimg-amd64.qcow2 https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img +wget -qO focal-server-cloudimg-amd64.qcow2 https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img /usr/sbin/qm set 310 --delete scsi0 sleep 2 /usr/sbin/qm set 310 --delete unused0 @@ -51,7 +51,7 @@ sleep 2 sleep 2 # ubuntu jammy 22.04 -wget -q -O jammy-server-cloudimg-amd64.qcow2 https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img +wget -qO jammy-server-cloudimg-amd64.qcow2 https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img /usr/sbin/qm set 311 --delete scsi0 sleep 2 /usr/sbin/qm set 311 --delete unused0 @@ -64,7 +64,7 @@ sleep 2 sleep 2 # ubuntu focal 20.04 minimal -wget -q -O ubuntu-20.04-minimal-cloudimg-amd64.qcow2 https://cloud-images.ubuntu.com/minimal/releases/focal/release/ubuntu-20.04-minimal-cloudimg-amd64.img +wget -qO ubuntu-20.04-minimal-cloudimg-amd64.qcow2 https://cloud-images.ubuntu.com/minimal/releases/focal/release/ubuntu-20.04-minimal-cloudimg-amd64.img /usr/sbin/qm set 312 --delete scsi0 sleep 2 /usr/sbin/qm set 312 --delete unused0 @@ -77,7 +77,7 @@ sleep 2 sleep 2 # ubuntu jammy 22.04 minimal -wget -q -O ubuntu-22.04-minimal-cloudimg-amd64.qcow2 https://cloud-images.ubuntu.com/minimal/releases/jammy/release/ubuntu-22.04-minimal-cloudimg-amd64.img +wget -qO ubuntu-22.04-minimal-cloudimg-amd64.qcow2 https://cloud-images.ubuntu.com/minimal/releases/jammy/release/ubuntu-22.04-minimal-cloudimg-amd64.img /usr/sbin/qm set 313 --delete scsi0 sleep 2 /usr/sbin/qm set 313 --delete unused0 diff --git a/files/bashscripts/proxmox/download-proxmox-essentials.sh b/files/bashscripts/proxmox/download-proxmox-essentials.sh index 859d1fa..25e1cc6 100644 --- a/files/bashscripts/proxmox/download-proxmox-essentials.sh +++ b/files/bashscripts/proxmox/download-proxmox-essentials.sh @@ -6,16 +6,16 @@ rm /root/scripts/proxmox-* > /dev/null 2>&1 # check for pbs directory if [[ -d /etc/proxmox-backup ]] ; then - wget -O /root/scripts/proxmox-pbs-essentials.sh https://aknlw.com/proxmox-pbs-essentials - wget -O /root/scripts/proxmox-post-pbs-install.sh https://aknlw.com/proxmox-post-pbs-install - wget -O /root/scripts/proxmox-kernel-clean.sh https://aknlw.com/proxmox-kernel-clean + wget -qO /root/scripts/proxmox-pbs-essentials.sh https://aknlw.com/proxmox-pbs-essentials + wget -qO /root/scripts/proxmox-post-pbs-install.sh https://aknlw.com/proxmox-post-pbs-install + wget -qO /root/scripts/proxmox-kernel-clean.sh https://aknlw.com/proxmox-kernel-clean chmod +x /root/scripts/proxmox-*.sh fi # check for pve directory if [[ -d /etc/pve ]] ; then - wget -O /root/scripts/proxmox-pve-essentials.sh https://aknlw.com/proxmox-pve-essentials - wget -O /root/scripts/proxmox-post-pve-install.sh https://aknlw.com/proxmox-post-pve-install - wget -O /root/scripts/proxmox-kernel-clean.sh https://aknlw.com/proxmox-kernel-clean + wget -qO /root/scripts/proxmox-pve-essentials.sh https://aknlw.com/proxmox-pve-essentials + wget -qO /root/scripts/proxmox-post-pve-install.sh https://aknlw.com/proxmox-post-pve-install + wget -qO /root/scripts/proxmox-kernel-clean.sh https://aknlw.com/proxmox-kernel-clean chmod +x /root/scripts/proxmox-*.sh fi diff --git a/files/bashscripts/proxmox/proxmox-shutdown-script.sh b/files/bashscripts/proxmox/proxmox-shutdown-script.sh deleted file mode 100755 index 9397b23..0000000 --- a/files/bashscripts/proxmox/proxmox-shutdown-script.sh +++ /dev/null @@ -1,3 +0,0 @@ -ssh -i /root/.ssh/gamingpc akanealw@gamingpc -t 'shutdown /f /t 3' -ssh -i /root/.ssh/truenas root@truenas -t 'shutdown -p now' -shutdown -h now \ No newline at end of file