mirror of https://github.com/tteck/Proxmox.git
Compare commits
No commits in common. "fb308e2bfd667f045f467845e9b5fa896374977e" and "201f95fe88d4562286d67edf712bcb4a40bf3330" have entirely different histories.
fb308e2bfd
...
201f95fe88
|
@ -10,13 +10,6 @@
|
||||||
- All LXC instances created using this repository come pre-installed with Midnight Commander, which is a command-line tool (`mc`) that offers a user-friendly file and directory management interface for the terminal environment.
|
- All LXC instances created using this repository come pre-installed with Midnight Commander, which is a command-line tool (`mc`) that offers a user-friendly file and directory management interface for the terminal environment.
|
||||||
- 🚨 **The scripts in the repository will no longer provide support for Proxmox VE 7 starting from July 2024 (scripts will not execute on PVE7). Subsequent <a href='https://forum.proxmox.com/threads/proxmox-ve-support-lifecycle.35755/' target='_blank' rel='noopener noreferrer'>Proxmox VE - Support Lifecycle</a>**
|
- 🚨 **The scripts in the repository will no longer provide support for Proxmox VE 7 starting from July 2024 (scripts will not execute on PVE7). Subsequent <a href='https://forum.proxmox.com/threads/proxmox-ve-support-lifecycle.35755/' target='_blank' rel='noopener noreferrer'>Proxmox VE - Support Lifecycle</a>**
|
||||||
|
|
||||||
## 2024-02-05
|
|
||||||
|
|
||||||
### Changed
|
|
||||||
|
|
||||||
- **Gokapi LXC**
|
|
||||||
- NEW Script
|
|
||||||
|
|
||||||
## 2024-02-04
|
## 2024-02-04
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
68
ct/gokapi.sh
68
ct/gokapi.sh
|
@ -1,68 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func)
|
|
||||||
# Copyright (c) 2021-2024 tteck
|
|
||||||
# Author: tteck (tteckster)
|
|
||||||
# License: MIT
|
|
||||||
# https://github.com/tteck/Proxmox/raw/main/LICENSE
|
|
||||||
|
|
||||||
function header_info {
|
|
||||||
clear
|
|
||||||
cat <<"EOF"
|
|
||||||
______ __ _
|
|
||||||
/ ____/___ / /______ _____ (_)
|
|
||||||
/ / __/ __ \/ //_/ __ `/ __ \/ /
|
|
||||||
/ /_/ / /_/ / ,< / /_/ / /_/ / /
|
|
||||||
\____/\____/_/|_|\__,_/ .___/_/
|
|
||||||
/_/
|
|
||||||
EOF
|
|
||||||
}
|
|
||||||
header_info
|
|
||||||
echo -e "Loading..."
|
|
||||||
APP="Gokapi"
|
|
||||||
var_disk="4"
|
|
||||||
var_cpu="1"
|
|
||||||
var_ram="512"
|
|
||||||
var_os="debian"
|
|
||||||
var_version="12"
|
|
||||||
variables
|
|
||||||
color
|
|
||||||
catch_errors
|
|
||||||
|
|
||||||
function default_settings() {
|
|
||||||
CT_TYPE="1"
|
|
||||||
PW=""
|
|
||||||
CT_ID=$NEXTID
|
|
||||||
HN=$NSAPP
|
|
||||||
DISK_SIZE="$var_disk"
|
|
||||||
CORE_COUNT="$var_cpu"
|
|
||||||
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
|
|
||||||
}
|
|
||||||
|
|
||||||
function update_script() {
|
|
||||||
header_info
|
|
||||||
if [[ ! -d /opt/gokapi ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
|
||||||
msg_error "There is currently no update path available."
|
|
||||||
exit
|
|
||||||
}
|
|
||||||
|
|
||||||
start
|
|
||||||
build_container
|
|
||||||
description
|
|
||||||
|
|
||||||
msg_ok "Completed Successfully!\n"
|
|
||||||
echo -e "${APP} Setup should be reachable by going to the following URL.
|
|
||||||
${BL}http://${IP}:53842/setup${CL} \n"
|
|
|
@ -57,11 +57,11 @@ header_info
|
||||||
if [[ ! -d /etc/dns ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
if [[ ! -d /etc/dns ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
||||||
msg_info "Updating ${APP}"
|
msg_info "Updating ${APP}"
|
||||||
|
|
||||||
if ! dpkg -s aspnetcore-runtime-8.0 > /dev/null 2>&1; then
|
if ! dpkg -s aspnetcore-runtime-7.0 > /dev/null 2>&1; then
|
||||||
wget -q https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb
|
wget -q https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb
|
||||||
dpkg -i packages-microsoft-prod.deb &>/dev/null
|
dpkg -i packages-microsoft-prod.deb &>/dev/null
|
||||||
apt-get update &>/dev/null
|
apt-get update &>/dev/null
|
||||||
apt-get install -y aspnetcore-runtime-8.0 &>/dev/null
|
apt-get install -y aspnetcore-runtime-7.0 &>/dev/null
|
||||||
rm packages-microsoft-prod.deb
|
rm packages-microsoft-prod.deb
|
||||||
fi
|
fi
|
||||||
bash <(curl -fsSL https://download.technitium.com/dns/install.sh) &>/dev/null
|
bash <(curl -fsSL https://download.technitium.com/dns/install.sh) &>/dev/null
|
||||||
|
|
|
@ -1,54 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Copyright (c) 2021-2024 tteck
|
|
||||||
# Author: tteck (tteckster)
|
|
||||||
# License: MIT
|
|
||||||
# https://github.com/tteck/Proxmox/raw/main/LICENSE
|
|
||||||
|
|
||||||
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
|
|
||||||
color
|
|
||||||
verb_ip6
|
|
||||||
catch_errors
|
|
||||||
setting_up_container
|
|
||||||
network_check
|
|
||||||
update_os
|
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
|
||||||
$STD apt-get install -y curl
|
|
||||||
$STD apt-get install -y sudo
|
|
||||||
$STD apt-get install -y mc
|
|
||||||
msg_ok "Installed Dependencies"
|
|
||||||
|
|
||||||
msg_info "Installing Gokapi"
|
|
||||||
LATEST=$(curl -sL https://api.github.com/repos/Forceu/Gokapi/releases/latest | grep '"tag_name":' | cut -d'"' -f4)
|
|
||||||
mkdir -p /opt/gokapi/{data,config}
|
|
||||||
wget -q https://github.com/Forceu/Gokapi/releases/download/$LATEST/gokapi-linux_amd64.zip
|
|
||||||
unzip -q gokapi-linux_amd64.zip -d /opt/gokapi
|
|
||||||
rm gokapi-linux_amd64.zip
|
|
||||||
chmod +x /opt/gokapi/gokapi-linux_amd64
|
|
||||||
msg_ok "Installed Gokapi"
|
|
||||||
|
|
||||||
msg_info "Creating Service"
|
|
||||||
cat <<EOF >/etc/systemd/system/gokapi.service
|
|
||||||
[Unit]
|
|
||||||
Description=gokapi
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
Environment=GOKAPI_DATA_DIR=/opt/gokapi/data
|
|
||||||
Environment=GOKAPI_CONFIG_DIR=/opt/gokapi/config
|
|
||||||
ExecStart=/opt/gokapi/gokapi-linux_amd64
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
systemctl enable -q --now gokapi
|
|
||||||
msg_ok "Created Service"
|
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
|
|
||||||
msg_info "Cleaning up"
|
|
||||||
$STD apt-get autoremove
|
|
||||||
$STD apt-get autoclean
|
|
||||||
msg_ok "Cleaned"
|
|
|
@ -24,7 +24,7 @@ wget -q https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.
|
||||||
$STD dpkg -i packages-microsoft-prod.deb
|
$STD dpkg -i packages-microsoft-prod.deb
|
||||||
rm -rf packages-microsoft-prod.deb
|
rm -rf packages-microsoft-prod.deb
|
||||||
$STD apt-get update
|
$STD apt-get update
|
||||||
$STD apt-get install -y aspnetcore-runtime-8.0
|
$STD apt-get install -y aspnetcore-runtime-7.0
|
||||||
msg_ok "Installed ASP.NET Core Runtime"
|
msg_ok "Installed ASP.NET Core Runtime"
|
||||||
|
|
||||||
msg_info "Installing Technitium DNS"
|
msg_info "Installing Technitium DNS"
|
||||||
|
|
Loading…
Reference in New Issue