Bump Z-Y Scripts to Debian 13 (#8174)

This commit is contained in:
CanbiZ
2025-10-07 21:23:56 +02:00
committed by GitHub
parent ad1650ddc2
commit c75be209e2
27 changed files with 164 additions and 140 deletions

View File

@@ -14,20 +14,20 @@ network_check
update_os
msg_info "Installing Dependencies"
$STD apt-get install -y ffmpeg
$STD apt install -y ffmpeg
msg_ok "Installed Dependencies"
fetch_and_deploy_gh_release "yt-dlp-webui" "marcopiovanello/yt-dlp-web-ui" "singlefile" "latest" "/usr/local/bin" "yt-dlp-webui_linux-amd64"
fetch_and_deploy_gh_release "yt-dlp" "yt-dlp/yt-dlp" "singlefile" "latest" "/usr/local/bin" "yt-dlp"
msg_info "Setting up ${APPLICATION}"
msg_info "Setting up YT-DLP-WEBUI"
mkdir -p /opt/yt-dlp-webui
mkdir /downloads
RPC_PASSWORD=$(openssl rand -base64 16)
{
echo "yt-dlp-webui-Credentials"
echo "Username: admin"
echo "Password: ${RPC_PASSWORD}"
echo "yt-dlp-webui-Credentials"
echo "Username: admin"
echo "Password: ${RPC_PASSWORD}"
} >>~/yt-dlp-webui.creds
cat <<EOF >/opt/yt-dlp-webui/config.conf
@@ -66,7 +66,9 @@ downloaderPath: /usr/local/bin/yt-dlp
# [optional] Path where a custom frontend will be loaded (instead of the embedded one)
#frontend_path: ./web/solid-frontend
EOF
msg_ok "Set up YT-DLP-WEBUI"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/yt-dlp-webui.service
[Unit]
Description=yt-dlp-webui service file
@@ -79,12 +81,13 @@ ExecStart=/usr/local/bin/yt-dlp-webui --conf /opt/yt-dlp-webui/config.conf
WantedBy=multi-user.target
EOF
systemctl enable -q --now yt-dlp-webui
msg_ok "Set up ${APPLICATION}"
msg_ok "Created Service"
motd_ssh
customize
msg_info "Cleaning up"
$STD apt-get -y autoremove
$STD apt-get -y autoclean
$STD apt -y autoremove
$STD apt -y autoclean
$STD apt -y clean
msg_ok "Cleaned"