Port new scripts to arm64

This commit is contained in:
Sam Heinz
2024-10-22 16:32:46 +10:00
parent 8a4bb5d35d
commit 8dd3861a96
17 changed files with 97 additions and 79 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func) source <(curl -s https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/build.func)
# Copyright (c) 2021-2024 tteck # Copyright (c) 2021-2024 tteck
# Author: tteck # Author: tteck
# License: MIT # License: MIT
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func) source <(curl -s https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/build.func)
# Copyright (c) 2021-2024 tteck # Copyright (c) 2021-2024 tteck
# Author: tteck # Author: tteck
# Co-Author: havardthom # Co-Author: havardthom
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func) source <(curl -s https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/build.func)
# Copyright (c) 2021-2024 tteck # Copyright (c) 2021-2024 tteck
# Author: MickLesk (Canbiz) # Author: MickLesk (Canbiz)
# License: MIT # License: MIT
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func) source <(curl -s https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/build.func)
# Copyright (c) 2021-2024 tteck # Copyright (c) 2021-2024 tteck
# Author: tteck # Author: tteck
# Co-Author: MickLesk (Canbiz) # Co-Author: MickLesk (Canbiz)
+66 -64
View File
@@ -1,70 +1,72 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func) # source <(curl -s https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/build.func)
# Copyright (c) 2021-2024 tteck # # Copyright (c) 2021-2024 tteck
# Author: tteck # # Author: tteck
# Co-Author: MickLesk (Canbiz) # # Co-Author: MickLesk (Canbiz)
# License: MIT # # License: MIT
# https://github.com/tteck/Proxmox/raw/main/LICENSE # # https://github.com/tteck/Proxmox/raw/main/LICENSE
function header_info { echo "Unsupported."
clear
cat <<"EOF"
__ ___ _____ ____ __
/ |/ /_ __/ ___// __ \ / /
/ /|_/ / / / /\__ \/ / / / / /
/ / / / /_/ /___/ / /_/ / / /___
/_/ /_/\__, //____/\___\_\/_____/
/____/
EOF
}
header_info
echo -e "Loading..."
APP="MySQL"
var_disk="4"
var_cpu="1"
var_ram="1024"
var_os="debian"
var_version="12"
variables
color
catch_errors
function default_settings() { # function header_info {
CT_TYPE="1" # clear
PW="" # cat <<"EOF"
CT_ID=$NEXTID # __ ___ _____ ____ __
HN=$NSAPP # / |/ /_ __/ ___// __ \ / /
DISK_SIZE="$var_disk" # / /|_/ / / / /\__ \/ / / / / /
CORE_COUNT="$var_cpu" # / / / / /_/ /___/ / /_/ / / /___
RAM_SIZE="$var_ram" # /_/ /_/\__, //____/\___\_\/_____/
BRG="vmbr0" # /____/
NET="dhcp" # EOF
GATE="" # }
APT_CACHER="" # header_info
APT_CACHER_IP="" # echo -e "Loading..."
DISABLEIP6="no" # APP="MySQL"
MTU="" # var_disk="4"
SD="" # var_cpu="1"
NS="" # var_ram="1024"
MAC="" # var_os="debian"
VLAN="" # var_version="12"
SSH="no" # variables
VERB="no" # color
echo_default # catch_errors
}
function update_script() { # function default_settings() {
header_info # CT_TYPE="1"
if [[ ! -f /usr/share/keyrings/mysql.gpg ]]; then msg_error "No ${APP} Installation Found!"; exit; fi # PW=""
msg_info "Updating ${APP} LXC" # CT_ID=$NEXTID
apt-get update &>/dev/null # HN=$NSAPP
apt-get -y upgrade &>/dev/null # DISK_SIZE="$var_disk"
msg_ok "Updated Successfully" # CORE_COUNT="$var_cpu"
exit # RAM_SIZE="$var_ram"
} # BRG="vmbr0"
# NET="dhcp"
# GATE=""
# APT_CACHER=""
# APT_CACHER_IP=""
# DISABLEIP6="no"
# MTU=""
# SD=""
# NS=""
# MAC=""
# VLAN=""
# SSH="no"
# VERB="no"
# echo_default
# }
start # function update_script() {
build_container # header_info
description # if [[ ! -f /usr/share/keyrings/mysql.gpg ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
# msg_info "Updating ${APP} LXC"
# apt-get update &>/dev/null
# apt-get -y upgrade &>/dev/null
# msg_ok "Updated Successfully"
# exit
# }
msg_ok "Completed Successfully!\n" # start
# build_container
# description
# msg_ok "Completed Successfully!\n"
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func) source <(curl -s https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/build.func)
# Copyright (c) 2021-2024 tteck # Copyright (c) 2021-2024 tteck
# Author: tteck # Author: tteck
# Co-Author: havardthom # Co-Author: havardthom
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func) source <(curl -s https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/build.func)
# Copyright (c) 2021-2024 tteck # Copyright (c) 2021-2024 tteck
# Author: tteck # Author: tteck
# Co-Author: MickLesk (Canbiz) # Co-Author: MickLesk (Canbiz)
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func) source <(curl -s https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/build.func)
# Copyright (c) 2021-2024 tteck # Copyright (c) 2021-2024 tteck
# Author: tteck # Author: tteck
# Co-Author: MickLesk (Canbiz) # Co-Author: MickLesk (Canbiz)
+3 -1
View File
@@ -25,7 +25,9 @@ $STD apt-get install -y \
libsasl2-dev \ libsasl2-dev \
procps \ procps \
dnsutils \ dnsutils \
ripgrep ripgrep \
wget \
openssh-server
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Python Dependencies" msg_info "Installing Python Dependencies"
+2
View File
@@ -19,6 +19,8 @@ msg_info "Installing Dependencies"
$STD apt-get install -y curl $STD apt-get install -y curl
$STD apt-get install -y sudo $STD apt-get install -y sudo
$STD apt-get install -y mc $STD apt-get install -y mc
$STD apt-get install -y wget
$STD apt-get install -y openssh-server
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Cockpit" msg_info "Installing Cockpit"
+3 -1
View File
@@ -21,7 +21,9 @@ $STD apt-get install -y \
sudo \ sudo \
mc \ mc \
lsb-release \ lsb-release \
gpg gpg \
wget \
openssh-server
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Setting up evcc Repository" msg_info "Setting up evcc Repository"
+4 -2
View File
@@ -19,12 +19,14 @@ msg_info "Installing Dependencies"
$STD apt-get install -y \ $STD apt-get install -y \
curl \ curl \
sudo \ sudo \
mc mc \
wget \
openssh-server
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Homebox" msg_info "Installing Homebox"
RELEASE=$(curl -s https://api.github.com/repos/sysadminsmedia/homebox/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') RELEASE=$(curl -s https://api.github.com/repos/sysadminsmedia/homebox/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
wget -qO- https://github.com/sysadminsmedia/homebox/releases/download/${RELEASE}/homebox_Linux_x86_64.tar.gz | tar -xzf - -C /opt wget -qO- https://github.com/sysadminsmedia/homebox/releases/download/${RELEASE}/homebox_Linux_arm64.tar.gz | tar -xzf - -C /opt
chmod +x /opt/homebox chmod +x /opt/homebox
echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt" echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt"
msg_ok "Installed Homebox" msg_ok "Installed Homebox"
+3 -1
View File
@@ -21,7 +21,9 @@ $STD apt-get install -y \
lsb-release \ lsb-release \
curl \ curl \
gnupg \ gnupg \
mc mc \
wget \
openssh-server
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing MySQL" msg_info "Installing MySQL"
+2
View File
@@ -19,6 +19,8 @@ $STD apt-get install -y curl
$STD apt-get install -y sudo $STD apt-get install -y sudo
$STD apt-get install -y mc $STD apt-get install -y mc
$STD apt-get install -y gpg $STD apt-get install -y gpg
$STD apt-get install -y wget
$STD apt-get install -y openssh-server
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Neo4j (patience)" msg_info "Installing Neo4j (patience)"
+3 -1
View File
@@ -28,7 +28,9 @@ $STD apt-get install -y \
make \ make \
gnupg \ gnupg \
ca-certificates \ ca-certificates \
mc mc \
wget \
openssh-server
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Node.js" msg_info "Installing Node.js"
+3 -1
View File
@@ -21,7 +21,9 @@ $STD apt-get install -y \
gpg \ gpg \
curl \ curl \
sudo \ sudo \
mc mc \
wget \
openssh-server
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Setting up Node.js Repository" msg_info "Setting up Node.js Repository"
+1 -1
View File
@@ -491,7 +491,7 @@ install_script() {
start() { start() {
if command -v pveversion >/dev/null 2>&1; then if command -v pveversion >/dev/null 2>&1; then
if ! (whiptail --backtitle "Proxmox VE Helper Scripts" --title "${APP} LXC" --yesno "To ensure the safety of your system, please use ONLY https://tteck.github.io/Proxmox/\n\nThis will create a New ${APP} LXC. Proceed?" 10 90); then if ! (whiptail --backtitle "Proxmox VE Helper Scripts" --title "${APP} LXC" --yesno "To ensure the safety of your system, please use ONLY https://tteck.github.io/Proxmox/ or https://pimox_scripts.com\n\nThis will create a New ${APP} LXC. Proceed?" 10 90); then
clear clear
echo -e "⚠ User exited script \n" echo -e "⚠ User exited script \n"
exit exit