update
This commit is contained in:
@@ -1,13 +1,12 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# TA-Proxmenu - Proxmox Scripts for TA Use
|
# TA-Proxmenu - Proxmox Setup Scripts for TA Use
|
||||||
|
|
||||||
action="$1"
|
action="$1"
|
||||||
FOLDER='/opt/idssys/ta-proxmenu'
|
FOLDER='/opt/idssys/ta-proxmenu'
|
||||||
VERS='2026.3.14'
|
VERS='2026.3.15'
|
||||||
|
|
||||||
RNIP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1)
|
RNIP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1)
|
||||||
|
|
||||||
|
|
||||||
url="https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso"
|
url="https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso"
|
||||||
while redirect_url=$( curl -I -s -S -f -w "%{redirect_url}\\n" -o /dev/null "${url}" ); do
|
while redirect_url=$( curl -I -s -S -f -w "%{redirect_url}\\n" -o /dev/null "${url}" ); do
|
||||||
VIRTIO_DOWNLOAD_URL=${url}; url=${redirect_url}; [[ -z "$url" ]] && break
|
VIRTIO_DOWNLOAD_URL=${url}; url=${redirect_url}; [[ -z "$url" ]] && break
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# TA-Proxmenu - Proxmox Scripts for TA Use
|
# TA-Proxmenu - Proxmox Setup Scripts for TA Use
|
||||||
|
|
||||||
|
|
||||||
[ "${2}" != "q" ] && source /opt/idssys/defaults/colors.inc
|
[ "${2}" != "q" ] && source /opt/idssys/defaults/colors.inc
|
||||||
@@ -36,7 +36,6 @@ INSTALL_ACRONIS() {
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
INSTALL_PROXMENUX() {
|
INSTALL_PROXMENUX() {
|
||||||
# read -n 1 -p "Are you sure you wish to install ProxMenux (Y/n)?" choice
|
# read -n 1 -p "Are you sure you wish to install ProxMenux (Y/n)?" choice
|
||||||
# case "$choice" in
|
# case "$choice" in
|
||||||
@@ -52,13 +51,13 @@ INSTALL_PROXMENUX() {
|
|||||||
|
|
||||||
PROXMENUX_POST_INSTALL() {
|
PROXMENUX_POST_INSTALL() {
|
||||||
PMFLDR='/usr/local/share/proxmenux/scripts/post_install'
|
PMFLDR='/usr/local/share/proxmenux/scripts/post_install'
|
||||||
echo 1
|
|
||||||
[ ! -f ${PMFLDR}/customizable_post_install.sh ] && INSTALL_PROXMENUX
|
[ ! -f ${PMFLDR}/customizable_post_install.sh ] && INSTALL_PROXMENUX
|
||||||
echo 2
|
|
||||||
bash ${PMFLDR}/customizable_post_install.sh
|
bash ${PMFLDR}/customizable_post_install.sh
|
||||||
|
|
||||||
[ ${action-x} ] && exit 0 || ENTER2CONTINUE
|
|
||||||
touch /opt/.PROXMENUX_POST_INSTALL
|
touch /opt/.PROXMENUX_POST_INSTALL
|
||||||
|
[ -s /etc/apt/sources.list ] && cat /dev/null > /etc/apt/sources.list
|
||||||
|
|
||||||
|
[ ${action-x} ] && exit 0 || ENTER2CONTINUE
|
||||||
}
|
}
|
||||||
|
|
||||||
INSTALL_GLANCES() {
|
INSTALL_GLANCES() {
|
||||||
@@ -202,12 +201,6 @@ DOWNLOAD_VIRTIO() {
|
|||||||
|
|
||||||
DETECT_CPU(){
|
DETECT_CPU(){
|
||||||
echo
|
echo
|
||||||
if ! command -v proxclmc &> /dev/null || [ ! -f /etc/apt/sources.list.d/gyptazy.list ]; then
|
|
||||||
curl https://git.gyptazy.com/api/packages/gyptazy/debian/repository.key -o /etc/apt/keyrings/gyptazy.asc
|
|
||||||
echo "deb [signed-by=/etc/apt/keyrings/gyptazy.asc] https://packages.gyptazy.com/api/packages/gyptazy/debian trixie main" | sudo tee -a /etc/apt/sources.list.d/gyptazy.list
|
|
||||||
apt update && apt -y install proxclmc
|
|
||||||
echo
|
|
||||||
fi
|
|
||||||
proxclmc
|
proxclmc
|
||||||
echo
|
echo
|
||||||
|
|
||||||
@@ -230,7 +223,7 @@ MAIN_MENU() {
|
|||||||
do
|
do
|
||||||
clear
|
clear
|
||||||
echo
|
echo
|
||||||
echo -e " ${idsCL[Green]}TA-Proxmenu - Proxmox Scripts${idsCL[Default]} ${idsCL[Default]}${VERS}"
|
echo -e " ${idsCL[Green]}TA-Proxmenu - Proxmox Setup Scripts${idsCL[Default]} ${idsCL[Default]}${VERS}"
|
||||||
echo -e "${idsCL[Green]}---------------------------------------------------------------------------${idsCL[Default]}"
|
echo -e "${idsCL[Green]}---------------------------------------------------------------------------${idsCL[Default]}"
|
||||||
echo -e "Hostname: ${idsCL[Cyan]}$(hostname -s)${idsCL[Default]}"
|
echo -e "Hostname: ${idsCL[Cyan]}$(hostname -s)${idsCL[Default]}"
|
||||||
echo -e "IP Address: ${idsCL[Cyan]}${RNIP}${idsCL[Default]}"
|
echo -e "IP Address: ${idsCL[Cyan]}${RNIP}${idsCL[Default]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user