mirror of https://github.com/tteck/Proxmox.git
Compare commits
8 Commits
a9042ffdc1
...
0618c89147
Author | SHA1 | Date |
---|---|---|
tteckster | 0618c89147 | |
tteckster | b7baf2d1ed | |
tteckster | b323313d6e | |
tteckster | e3160b56af | |
tteckster | d442fa49f5 | |
tteckster | 7e061a112f | |
tteckster | 221ed9d260 | |
tteckster | 8847505782 |
|
@ -56,7 +56,7 @@ header_info
|
||||||
if [[ ! -f /etc/apt/sources.list.d/evcc-stable.list ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
if [[ ! -f /etc/apt/sources.list.d/evcc-stable.list ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
||||||
msg_info "Updating evcc LXC"
|
msg_info "Updating evcc LXC"
|
||||||
apt update &>/dev/null
|
apt update &>/dev/null
|
||||||
apt install -y evcc &>/dev/null
|
apt --only-upgrade install -y evcc &>/dev/null
|
||||||
msg_ok "Updated Successfully"
|
msg_ok "Updated Successfully"
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,8 +20,8 @@ header_info
|
||||||
echo -e "Loading..."
|
echo -e "Loading..."
|
||||||
APP="Jellyseerr"
|
APP="Jellyseerr"
|
||||||
var_disk="8"
|
var_disk="8"
|
||||||
var_cpu="2"
|
var_cpu="4"
|
||||||
var_ram="2048"
|
var_ram="4096"
|
||||||
var_os="debian"
|
var_os="debian"
|
||||||
var_version="12"
|
var_version="12"
|
||||||
variables
|
variables
|
||||||
|
@ -55,6 +55,13 @@ function default_settings() {
|
||||||
function update_script() {
|
function update_script() {
|
||||||
header_info
|
header_info
|
||||||
if [[ ! -d /opt/jellyseerr ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
if [[ ! -d /opt/jellyseerr ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
||||||
|
whiptail --backtitle "Proxmox VE Helper Scripts" --msgbox --title "SET RESOURCES" "Please set the resources in your Jellyseerr LXC to 4vcpu and 4096RAM for the build process before continuing" 10 75
|
||||||
|
if ! command -v pnpm &> /dev/null; then
|
||||||
|
msg_error "pnpm not found. Installing..."
|
||||||
|
npm install -g pnpm &>/dev/null
|
||||||
|
else
|
||||||
|
msg_ok "pnpm is already installed."
|
||||||
|
fi
|
||||||
msg_info "Updating $APP"
|
msg_info "Updating $APP"
|
||||||
systemctl stop jellyseerr
|
systemctl stop jellyseerr
|
||||||
cd /opt/jellyseerr
|
cd /opt/jellyseerr
|
||||||
|
@ -62,12 +69,29 @@ output=$(git pull)
|
||||||
git pull &>/dev/null
|
git pull &>/dev/null
|
||||||
if echo "$output" | grep -q "Already up to date."
|
if echo "$output" | grep -q "Already up to date."
|
||||||
then
|
then
|
||||||
msg_ok " $APP is already up to date."
|
msg_ok "$APP is already up to date."
|
||||||
systemctl start jellyseerr
|
systemctl start jellyseerr
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
CYPRESS_INSTALL_BINARY=0 yarn install --frozen-lockfile --network-timeout 1000000 &>/dev/null
|
export CYPRESS_INSTALL_BINARY=0
|
||||||
yarn build &>/dev/null
|
pnpm install --frozen-lockfile &>/dev/null
|
||||||
|
export NODE_OPTIONS="--max-old-space-size=3072"
|
||||||
|
pnpm build &>/dev/null
|
||||||
|
cat <<EOF >/etc/systemd/system/jellyseerr.service
|
||||||
|
[Unit]
|
||||||
|
Description=jellyseerr Service
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
EnvironmentFile=/etc/jellyseerr/jellyseerr.conf
|
||||||
|
Environment=NODE_ENV=production
|
||||||
|
Type=exec
|
||||||
|
WorkingDirectory=/opt/jellyseerr
|
||||||
|
ExecStart=/usr/bin/node dist/index.js
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
EOF
|
||||||
systemctl start jellyseerr
|
systemctl start jellyseerr
|
||||||
msg_ok "Updated $APP"
|
msg_ok "Updated $APP"
|
||||||
exit
|
exit
|
||||||
|
@ -77,6 +101,11 @@ start
|
||||||
build_container
|
build_container
|
||||||
description
|
description
|
||||||
|
|
||||||
|
msg_info "Setting Container to Normal Resources"
|
||||||
|
pct set $CTID -memory 2048
|
||||||
|
pct set $CTID -cores 2
|
||||||
|
msg_ok "Set Container to Normal Resources"
|
||||||
|
|
||||||
msg_ok "Completed Successfully!\n"
|
msg_ok "Completed Successfully!\n"
|
||||||
echo -e "${APP} should be reachable by going to the following URL.
|
echo -e "${APP} should be reachable by going to the following URL.
|
||||||
${BL}http://${IP}:5055${CL} \n"
|
${BL}http://${IP}:5055${CL} \n"
|
||||||
|
|
|
@ -18,8 +18,7 @@ $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 git
|
$STD apt-get install -y git
|
||||||
$STD apt-get install -y ca-certificates
|
$STD apt-get install -y gpg
|
||||||
$STD apt-get install -y gnupg
|
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Setting up Node.js Repository"
|
msg_info "Setting up Node.js Repository"
|
||||||
|
@ -33,17 +32,18 @@ $STD apt-get update
|
||||||
$STD apt-get install -y nodejs
|
$STD apt-get install -y nodejs
|
||||||
msg_ok "Installed Node.js"
|
msg_ok "Installed Node.js"
|
||||||
|
|
||||||
msg_info "Installing Yarn"
|
msg_info "Installing pnpm"
|
||||||
$STD npm install -g yarn
|
$STD npm install -g pnpm
|
||||||
msg_ok "Installed Yarn"
|
msg_ok "Installed pnpm"
|
||||||
|
|
||||||
msg_info "Installing Jellyseerr (Patience)"
|
msg_info "Installing Jellyseerr (Patience)"
|
||||||
git clone -q https://github.com/Fallenbagel/jellyseerr.git /opt/jellyseerr
|
git clone -q https://github.com/Fallenbagel/jellyseerr.git /opt/jellyseerr
|
||||||
cd /opt/jellyseerr
|
cd /opt/jellyseerr
|
||||||
$STD git checkout main
|
$STD git checkout main
|
||||||
CYPRESS_INSTALL_BINARY=0 yarn install --frozen-lockfile --network-timeout 1000000 &>/dev/null
|
export CYPRESS_INSTALL_BINARY=0
|
||||||
$STD yarn install
|
$STD pnpm install --frozen-lockfile
|
||||||
$STD yarn build
|
export NODE_OPTIONS="--max-old-space-size=3072"
|
||||||
|
$STD pnpm build
|
||||||
mkdir -p /etc/jellyseerr/
|
mkdir -p /etc/jellyseerr/
|
||||||
cat <<EOF >/etc/jellyseerr/jellyseerr.conf
|
cat <<EOF >/etc/jellyseerr/jellyseerr.conf
|
||||||
PORT=5055
|
PORT=5055
|
||||||
|
@ -63,7 +63,7 @@ EnvironmentFile=/etc/jellyseerr/jellyseerr.conf
|
||||||
Environment=NODE_ENV=production
|
Environment=NODE_ENV=production
|
||||||
Type=exec
|
Type=exec
|
||||||
WorkingDirectory=/opt/jellyseerr
|
WorkingDirectory=/opt/jellyseerr
|
||||||
ExecStart=/usr/bin/yarn start
|
ExecStart=/usr/bin/node dist/index.js
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in New Issue