fix and migrate to new format

This commit is contained in:
Kristo Copani 2024-12-26 13:16:06 +02:00
parent 1b93060981
commit 31752782ba
2 changed files with 23 additions and 52 deletions

View File

@ -1,56 +1,29 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) source <(curl -s https://raw.githubusercontent.com/quantumryuu/ProxmoxVE/main/misc/build.func)
# Copyright (c) 2021-2024 community-scripts ORG # Copyright (c) 2021-2024 community-scripts ORG
# Author: kristocopani # Author: kristocopani
# License: MIT # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://adguard.com/
function header_info { # App Default Values
clear
cat <<"EOF"
__ __ _
/ /__ ____ / /__(_)___ _____
__ / / _ \/ __ \/ //_/ / __ \/ ___/
/ /_/ / __/ / / / ,< / / / / (__ )
\____/\___/_/ /_/_/|_/_/_/ /_/____/
EOF
}
header_info
echo -e "Loading..."
APP="Jenkins" APP="Jenkins"
var_disk="4" var_tags="Jenkins"
var_cpu="2" var_cpu="2"
var_ram="1024" var_ram="1024"
var_disk="4"
var_os="debian" var_os="debian"
var_version="12" var_version="12"
var_unprivileged="1"
# App Output & Base Settings
header_info "$APP"
base_settings
# Core
variables variables
color color
catch_errors 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() { function update_script() {
header_info header_info
check_container_storage check_container_storage
@ -62,5 +35,6 @@ build_container
description description
msg_ok "Completed Successfully!\n" msg_ok "Completed Successfully!\n"
echo -e "${APP} should be reachable by going to the following URL. echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
${BL}http://${IP}:8080${CL} \n" echo -e "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"

View File

@ -18,18 +18,15 @@ $STD apt-get install -y \
curl \ curl \
mc \ mc \
sudo \ sudo \
fontconfig \
openjdk-17-jre openjdk-17-jre
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Setup Jenkins"
msg_info "Installing Jenkins"
wget -qO /usr/share/keyrings/jenkins-keyring.asc https://pkg.jenkins.io/debian/jenkins.io-2023.key wget -qO /usr/share/keyrings/jenkins-keyring.asc https://pkg.jenkins.io/debian/jenkins.io-2023.key
echo "deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc]" https://pkg.jenkins.io/debian binary/ >/etc/apt/sources.list.d/jenkins.list echo "deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc]" https://pkg.jenkins.io/debian binary/ >/etc/apt/sources.list.d/jenkins.list
$STD apt-get update $STD apt-get update
$STD apt-get install -y \ $STD apt-get install -y jenkins
jenkins msg_ok "Setup Jenkins"
msg_ok "Installed Jenkins"
motd_ssh motd_ssh
customize customize