From d943583acddfd31dabb77dd07d823eb2d91687d8 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Thu, 23 Mar 2023 17:19:22 +0800 Subject: [PATCH] update: log information --- init.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/init.sh b/init.sh index 12907c8..6558475 100755 --- a/init.sh +++ b/init.sh @@ -5,11 +5,6 @@ CONFIG="/var/www/alltube/config/config.yml" sed -i "s,^audioBitrate:.*,audioBitrate: 320," "${CONFIG}" sed -i "s,^youtubedl:.*,youtubedl: /usr/bin/yt-dlp," "${CONFIG}" -if [ -n "$TITLE" ]; then - echo "Title: ${TITLE}" - sed -i "s,^appName:.*,appName: ${TITLE}," "${CONFIG}" -fi - if [ "$REMUX" = "TRUE" ] || [ "$REMUX" = "ON" ]; then echo "Remux enabled" sed -i "s,^remux:.*,remux: true," "${CONFIG}" @@ -26,7 +21,14 @@ if [ "$CONVERT" = "TRUE" ] || [ "$CONVERT" = "ON" ]; then sed -i "s,^convertAdvanced:.*,convertAdvanced: true," "${CONFIG}" fi +if [ -n "$TITLE" ]; then + echo "Title: ${TITLE}" + sed -i "s,^appName:.*,appName: ${TITLE}," "${CONFIG}" +fi + echo "yt-dlp version: $(yt-dlp --version)" +echo "Alltube service is running..." + /usr/sbin/nginx exec /usr/sbin/php-fpm7 -F