This commit is contained in:
nnsense
2026-05-08 12:55:27 +00:00
parent 8815335de7
commit bc3db309a2
3 changed files with 11 additions and 39 deletions

View File

@@ -58,22 +58,11 @@ function update_script() {
exit
}
DOWNLOADS_PATH=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "Pinchflat Downloads" --inputbox \
"Downloads path inside the LXC.
Default: /opt/pinchflat/downloads
Example external mount path: /mnt/pinchflat
If the path does not exist during installation, it will be created locally.
You can later stop the LXC, mount external storage at the same path, and start it again." \
18 78 "${DOWNLOADS_PATH:-/opt/pinchflat/downloads}" 3>&1 1>&2 2>&3 || true)
DOWNLOADS_PATH="${DOWNLOADS_PATH:-/opt/pinchflat/downloads}"
export DOWNLOADS_PATH
start
build_container
description
msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8945${CL}"

View File

@@ -36,19 +36,11 @@ $STD apt install -y \
zip
msg_ok "Installed Dependencies"
NODE_VERSION="20" NODE_MODULE="yarn" setup_nodejs
NODE_VERSION="24" NODE_MODULE="yarn" setup_nodejs
FFMPEG_TYPE="binary" setup_ffmpeg
DENO_ASSET="deno-x86_64-unknown-linux-gnu.zip"
YT_DLP_ASSET="yt-dlp_linux"
case "$(dpkg --print-architecture)" in
arm64)
DENO_ASSET="deno-aarch64-unknown-linux-gnu.zip"
YT_DLP_ASSET="yt-dlp_linux_aarch64"
;;
*)
DENO_ASSET="deno-x86_64-unknown-linux-gnu.zip"
YT_DLP_ASSET="yt-dlp_linux"
;;
esac
fetch_and_deploy_gh_release "deno" "denoland/deno" "prebuild" "latest" "/usr/local/bin" "$DENO_ASSET"
fetch_and_deploy_gh_release "yt-dlp" "yt-dlp/yt-dlp" "singlefile" "latest" "/usr/local/bin" "$YT_DLP_ASSET"
@@ -67,7 +59,7 @@ fetch_and_deploy_gh_release "pinchflat" "kieraneglin/pinchflat" "tarball" "lates
msg_info "Configuring Pinchflat"
CONFIG_PATH="/opt/pinchflat/config"
DOWNLOADS_PATH="${DOWNLOADS_PATH:-/opt/pinchflat/downloads}"
DOWNLOADS_PATH="/opt/pinchflat/downloads"
mkdir -p \
/etc/elixir_tzdata_data \
@@ -114,6 +106,7 @@ cp -r _build/prod/rel/pinchflat /opt/pinchflat/app
msg_ok "Built Pinchflat"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/pinchflat.service
[Unit]
Description=Pinchflat
@@ -133,20 +126,10 @@ RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now pinchflat
msg_ok "Created Service"
cat <<EOF >/opt/pinchflat/README
Pinchflat is installed as a systemd service.
Web UI: http://<LXC-IP>:8945
Config path: ${CONFIG_PATH}
Downloads path: ${DOWNLOADS_PATH}
If an external downloads path was selected, mount it inside the LXC at the same path.
If the path did not exist during installation, it was created locally and can later be replaced by the mount.
EOF
motd_ssh
customize
cleanup_lxc

View File

@@ -11,7 +11,7 @@
"interface_port": 8945,
"documentation": "https://github.com/kieraneglin/pinchflat/wiki",
"website": "https://github.com/kieraneglin/pinchflat",
"logo": "https://raw.githubusercontent.com/kieraneglin/pinchflat/master/priv/static/images/originals/logo-white-wordmark-with-background.png",
"logo": "https://raw.githubusercontent.com/kieraneglin/pinchflat/67d8bd5598f4461c5435bcc66fc8d02b00c607cb/priv/static/images/icon-2024-03-20.png",
"description": "Pinchflat is a self-hosted YouTube media manager built with yt-dlp for automatically downloading and organizing content from channels and playlists.",
"install_methods": [
{
@@ -33,11 +33,11 @@
},
"notes": [
{
"text": "For large media libraries, use an external mount path such as `/mnt/pinchflat` for downloads.",
"type": "info"
"text": "For large media libraries, mount external storage at `/opt/pinchflat/downloads` before downloading media to avoid filling the LXC disk.",
"type": "warning"
},
{
"text": "Pinchflat data is stored in `/opt/pinchflat/config`; downloaded media is stored in the selected downloads path.",
"text": "Pinchflat data is stored in `/opt/pinchflat/config`; downloaded media is stored in `/opt/pinchflat/downloads`.",
"type": "info"
}
]