From 765f0f76a70ce64ad881cb216998a991c287e33f Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 10 Feb 2022 15:27:56 -0500 Subject: [PATCH] Update jellyfin_setup.sh --- setup/jellyfin_setup.sh | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/setup/jellyfin_setup.sh b/setup/jellyfin_setup.sh index 7b62469d..bf42ac14 100644 --- a/setup/jellyfin_setup.sh +++ b/setup/jellyfin_setup.sh @@ -51,10 +51,8 @@ echo -e "${CHECKMARK} \e[1;92m Installing Dependencies... \e[0m" apt-get -qqy install \ curl \ sudo &>/dev/null - -echo -e "${CHECKMARK} \e[1;92m Setting Up Jellyfin Repository... \e[0m" sudo apt install extrepo -y &>/dev/null - sudo extrepo enable jellyfin + sudo extrepo enable jellyfin &>/dev/null echo -e "${CHECKMARK} \e[1;92m Installing Jellyfin... \e[0m" apt-get update &>/dev/null @@ -64,13 +62,13 @@ echo -e "${CHECKMARK} \e[1;92m Customizing Container... \e[0m" touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) - cat << EOF > $GETTY_OVERRIDE - [Service] - ExecStart= - ExecStart=-/sbin/agetty --autologin root --noclear --keep-baud tty%I 115200,38400,9600 \$TERM - EOF +cat << EOF > $GETTY_OVERRIDE +[Service] +ExecStart= +ExecStart=-/sbin/agetty --autologin root --noclear --keep-baud tty%I 115200,38400,9600 \$TERM +EOF systemctl daemon-reload systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//') systemctl enable jellyfin.service &>/dev/null echo -e "${CHECKMARK} \e[1;92m Cleanup... \e[0m" - rm -rf /jellyfin_setup.sh /var/{cache,log}/* /var/lib/apt/lists/* +rm -rf /jellyfin_setup.sh /var/{cache,log}/* /var/lib/apt/lists/*