Update jackett-v5.sh

pull/1105/head
tteckster 2 years ago committed by GitHub
parent 2ae9a67b42
commit f7bc701af3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 24
      ct/jackett-v5.sh

@ -1,22 +1,19 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (c) 2021-2023 tteck # Copyright (c) 2021-2023 tteck
# Author: romka777 (Roman Gogolev) # Author: tteck (tteckster)
# License: MIT # License: MIT
# https://github.com/tteck/Proxmox/raw/main/LICENSE # https://github.com/tteck/Proxmox/raw/main/LICENSE
function header_info { function header_info {
clear clear
cat <<"EOF" cat <<"EOF"
__ __ __ __
/ /___ ______/ /_____v5/ /_/ /_
__ __ __ __ __ / / __ `/ ___/ //_/ _ \/ __/ __/
/ / ____ _ _____ / /__ ___ / /_ / /_ / /_/ / /_/ / /__/ ,< / __/ /_/ /_
__ / / / __ `/ / ___/ / //_/ / _ \ / __/ / __/ \____/\__,_/\___/_/|_|\___/\__/\__/
/ /_/ / / /_/ / / /__ / ,< / __// /_ / /_
\____/ \__,_/ \___/ /_/|_| \___/ \__/ \__/
EOF EOF
} }
header_info header_info
@ -27,7 +24,6 @@ var_cpu="1"
var_ram="512" var_ram="512"
var_os="debian" var_os="debian"
var_version="11" var_version="11"
var_repo="tteck/Proxmox"
NSAPP=$(echo ${APP,,} | tr -d ' ') NSAPP=$(echo ${APP,,} | tr -d ' ')
var_install="${NSAPP}-v5-install" var_install="${NSAPP}-v5-install"
INTEGER='^[0-9]+$' INTEGER='^[0-9]+$'
@ -86,7 +82,7 @@ fi
} }
function default_settings() { function default_settings() {
echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL}" echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
CT_TYPE="1" CT_TYPE="1"
echo -e "${DGN}Using Root Password: ${BGN}Automatic Login${CL}" echo -e "${DGN}Using Root Password: ${BGN}Automatic Login${CL}"
PW="" PW=""
@ -381,11 +377,11 @@ export PCT_OPTIONS="
-unprivileged $CT_TYPE -unprivileged $CT_TYPE
$PW $PW
" "
bash -c "$(wget -qLO - https://raw.githubusercontent.com/$var_repo/main/ct/create_lxc.sh)" || exit bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ct/create_lxc.sh)" || exit
msg_info "Starting LXC Container" msg_info "Starting LXC Container"
pct start $CTID pct start $CTID
msg_ok "Started LXC Container" msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/$var_repo/main/install/$var_install.sh)" || exit lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/pull-requests/install/$var_install.sh)" || exit
IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1) IP=$(pct exec $CTID ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/ ### https://tteck.github.io/Proxmox/

Loading…
Cancel
Save