Fix
This commit is contained in:
@@ -58,22 +58,11 @@ function update_script() {
|
|||||||
exit
|
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
|
start
|
||||||
build_container
|
build_container
|
||||||
description
|
description
|
||||||
msg_ok "Completed Successfully!\n"
|
msg_ok "Completed Successfully!\n"
|
||||||
|
|
||||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||||
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
||||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8945${CL}"
|
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8945${CL}"
|
||||||
|
|||||||
@@ -36,19 +36,11 @@ $STD apt install -y \
|
|||||||
zip
|
zip
|
||||||
msg_ok "Installed Dependencies"
|
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
|
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 "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"
|
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"
|
msg_info "Configuring Pinchflat"
|
||||||
CONFIG_PATH="/opt/pinchflat/config"
|
CONFIG_PATH="/opt/pinchflat/config"
|
||||||
DOWNLOADS_PATH="${DOWNLOADS_PATH:-/opt/pinchflat/downloads}"
|
DOWNLOADS_PATH="/opt/pinchflat/downloads"
|
||||||
|
|
||||||
mkdir -p \
|
mkdir -p \
|
||||||
/etc/elixir_tzdata_data \
|
/etc/elixir_tzdata_data \
|
||||||
@@ -114,6 +106,7 @@ cp -r _build/prod/rel/pinchflat /opt/pinchflat/app
|
|||||||
msg_ok "Built Pinchflat"
|
msg_ok "Built Pinchflat"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
|
|
||||||
cat <<EOF >/etc/systemd/system/pinchflat.service
|
cat <<EOF >/etc/systemd/system/pinchflat.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Pinchflat
|
Description=Pinchflat
|
||||||
@@ -133,20 +126,10 @@ RestartSec=5
|
|||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
systemctl enable -q --now pinchflat
|
systemctl enable -q --now pinchflat
|
||||||
msg_ok "Created Service"
|
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
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
cleanup_lxc
|
cleanup_lxc
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
"interface_port": 8945,
|
"interface_port": 8945,
|
||||||
"documentation": "https://github.com/kieraneglin/pinchflat/wiki",
|
"documentation": "https://github.com/kieraneglin/pinchflat/wiki",
|
||||||
"website": "https://github.com/kieraneglin/pinchflat",
|
"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.",
|
"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": [
|
"install_methods": [
|
||||||
{
|
{
|
||||||
@@ -33,11 +33,11 @@
|
|||||||
},
|
},
|
||||||
"notes": [
|
"notes": [
|
||||||
{
|
{
|
||||||
"text": "For large media libraries, use an external mount path such as `/mnt/pinchflat` for downloads.",
|
"text": "For large media libraries, mount external storage at `/opt/pinchflat/downloads` before downloading media to avoid filling the LXC disk.",
|
||||||
"type": "info"
|
"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"
|
"type": "info"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user