Compare commits

..

No commits in common. "0618c89147314b04b4d345effc70b5d39fec0094" and "a9042ffdc19722d23623186b7eca81217393b34e" have entirely different histories.

3 changed files with 15 additions and 44 deletions

View File

@ -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 --only-upgrade install -y evcc &>/dev/null apt install -y evcc &>/dev/null
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit
} }

View File

@ -20,8 +20,8 @@ header_info
echo -e "Loading..." echo -e "Loading..."
APP="Jellyseerr" APP="Jellyseerr"
var_disk="8" var_disk="8"
var_cpu="4" var_cpu="2"
var_ram="4096" var_ram="2048"
var_os="debian" var_os="debian"
var_version="12" var_version="12"
variables variables
@ -55,13 +55,6 @@ 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
@ -73,25 +66,8 @@ then
systemctl start jellyseerr systemctl start jellyseerr
exit exit
fi fi
export CYPRESS_INSTALL_BINARY=0 CYPRESS_INSTALL_BINARY=0 yarn install --frozen-lockfile --network-timeout 1000000 &>/dev/null
pnpm install --frozen-lockfile &>/dev/null yarn build &>/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
@ -101,11 +77,6 @@ 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"

View File

@ -18,7 +18,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 git $STD apt-get install -y git
$STD apt-get install -y gpg $STD apt-get install -y ca-certificates
$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"
@ -32,18 +33,17 @@ $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 pnpm" msg_info "Installing Yarn"
$STD npm install -g pnpm $STD npm install -g yarn
msg_ok "Installed pnpm" msg_ok "Installed Yarn"
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
export CYPRESS_INSTALL_BINARY=0 CYPRESS_INSTALL_BINARY=0 yarn install --frozen-lockfile --network-timeout 1000000 &>/dev/null
$STD pnpm install --frozen-lockfile $STD yarn install
export NODE_OPTIONS="--max-old-space-size=3072" $STD yarn build
$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/node dist/index.js ExecStart=/usr/bin/yarn start
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target