mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-04 10:22:50 +00:00
Bump Z-Y Scripts to Debian 13 (#8174)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user