Browse Source

update: log information

master
Dnomd343 2 years ago
parent
commit
d943583acd
  1. 12
      init.sh

12
init.sh

@ -5,11 +5,6 @@ CONFIG="/var/www/alltube/config/config.yml"
sed -i "s,^audioBitrate:.*,audioBitrate: 320," "${CONFIG}" sed -i "s,^audioBitrate:.*,audioBitrate: 320," "${CONFIG}"
sed -i "s,^youtubedl:.*,youtubedl: /usr/bin/yt-dlp," "${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 if [ "$REMUX" = "TRUE" ] || [ "$REMUX" = "ON" ]; then
echo "Remux enabled" echo "Remux enabled"
sed -i "s,^remux:.*,remux: true," "${CONFIG}" sed -i "s,^remux:.*,remux: true," "${CONFIG}"
@ -26,7 +21,14 @@ if [ "$CONVERT" = "TRUE" ] || [ "$CONVERT" = "ON" ]; then
sed -i "s,^convertAdvanced:.*,convertAdvanced: true," "${CONFIG}" sed -i "s,^convertAdvanced:.*,convertAdvanced: true," "${CONFIG}"
fi fi
if [ -n "$TITLE" ]; then
echo "Title: ${TITLE}"
sed -i "s,^appName:.*,appName: ${TITLE}," "${CONFIG}"
fi
echo "yt-dlp version: $(yt-dlp --version)" echo "yt-dlp version: $(yt-dlp --version)"
echo "Alltube service is running..."
/usr/sbin/nginx /usr/sbin/nginx
exec /usr/sbin/php-fpm7 -F exec /usr/sbin/php-fpm7 -F

Loading…
Cancel
Save