mirror of https://github.com/tteck/Proxmox.git
Update jellyfin_setup.sh
This commit is contained in:
parent
1de4d6a7d2
commit
765f0f76a7
|
@ -51,10 +51,8 @@ echo -e "${CHECKMARK} \e[1;92m Installing Dependencies... \e[0m"
|
||||||
apt-get -qqy install \
|
apt-get -qqy install \
|
||||||
curl \
|
curl \
|
||||||
sudo &>/dev/null
|
sudo &>/dev/null
|
||||||
|
|
||||||
echo -e "${CHECKMARK} \e[1;92m Setting Up Jellyfin Repository... \e[0m"
|
|
||||||
sudo apt install extrepo -y &>/dev/null
|
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"
|
echo -e "${CHECKMARK} \e[1;92m Installing Jellyfin... \e[0m"
|
||||||
apt-get update &>/dev/null
|
apt-get update &>/dev/null
|
||||||
|
@ -64,13 +62,13 @@ echo -e "${CHECKMARK} \e[1;92m Customizing Container... \e[0m"
|
||||||
touch ~/.hushlogin
|
touch ~/.hushlogin
|
||||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||||
cat << EOF > $GETTY_OVERRIDE
|
cat << EOF > $GETTY_OVERRIDE
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=
|
ExecStart=
|
||||||
ExecStart=-/sbin/agetty --autologin root --noclear --keep-baud tty%I 115200,38400,9600 \$TERM
|
ExecStart=-/sbin/agetty --autologin root --noclear --keep-baud tty%I 115200,38400,9600 \$TERM
|
||||||
EOF
|
EOF
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||||
systemctl enable jellyfin.service &>/dev/null
|
systemctl enable jellyfin.service &>/dev/null
|
||||||
echo -e "${CHECKMARK} \e[1;92m Cleanup... \e[0m"
|
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/*
|
||||||
|
|
Loading…
Reference in New Issue