Apply suggestions
This commit is contained in:
5
debian/conf/jellyfin.init
vendored
5
debian/conf/jellyfin.init
vendored
@@ -19,14 +19,13 @@ fi
|
||||
|
||||
. /lib/lsb/init-functions
|
||||
|
||||
JELLYFIN_HOME="/etc/default/jellyfin"
|
||||
PIDFILE="/run/jellyfin.pid"
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
log_daemon_msg "Starting Jellyfin Media Server" "jellyfin" || true
|
||||
|
||||
if start-stop-daemon --start --quiet --oknodo --background --chdir $JELLYFIN_HOME --pidfile $PIDFILE --make-pidfile --user $JELLYFIN_USER --chuid $JELLYFIN_USER --exec /usr/bin/jellyfin -- $JELLYFIN_ARGS; then
|
||||
if start-stop-daemon --start --quiet --oknodo --background --chdir $JELLYFIN_DATA_DIR --pidfile $PIDFILE --make-pidfile --user $JELLYFIN_USER --chuid $JELLYFIN_USER --exec /usr/bin/jellyfin -- $JELLYFIN_ARGS; then
|
||||
log_end_msg 0 || true
|
||||
else
|
||||
log_end_msg 1 || true
|
||||
@@ -45,7 +44,7 @@ case "$1" in
|
||||
restart)
|
||||
log_daemon_msg "Restarting Jellyfin Media Server" "jellyfin" || true
|
||||
start-stop-daemon --stop --quiet --oknodo --retry 30 --pidfile $PIDFILE --remove-pidfile
|
||||
if start-stop-daemon --start --quiet --oknodo --background --chdir $JELLYFIN_HOME --pidfile $PIDFILE --make-pidfile --user $JELLYFIN_USER --chuid $JELLYFIN_USER --exec /usr/bin/jellyfin -- $JELLYFIN_ARGS; then
|
||||
if start-stop-daemon --start --quiet --oknodo --background --chdir $JELLYFIN_DATA_DIR --pidfile $PIDFILE --make-pidfile --user $JELLYFIN_USER --chuid $JELLYFIN_USER --exec /usr/bin/jellyfin -- $JELLYFIN_ARGS; then
|
||||
log_end_msg 0 || true
|
||||
else
|
||||
log_end_msg 1 || true
|
||||
|
||||
@@ -43,13 +43,13 @@ RUN apk add \
|
||||
make \
|
||||
libpng-dev \
|
||||
gifsicle \
|
||||
alpine-sdk\
|
||||
alpine-sdk \
|
||||
automake \
|
||||
libtool \
|
||||
gcc \
|
||||
musl-dev \
|
||||
nasm \
|
||||
python3
|
||||
python3
|
||||
|
||||
WORKDIR ${SOURCE_DIR}
|
||||
COPY jellyfin-web .
|
||||
@@ -138,7 +138,7 @@ RUN apt-get update \
|
||||
libfontconfig1 \
|
||||
libfreetype6 \
|
||||
&& sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen \
|
||||
&& apt-get remove gnupg apt-transport-https --yes \
|
||||
&& apt-get remove gnupg apt-transport-https --yes \
|
||||
&& apt-get clean autoclean --yes \
|
||||
&& apt-get autoremove --yes \
|
||||
&& rm -rf /var/cache/apt/archives* /var/lib/apt/lists/*
|
||||
|
||||
Reference in New Issue
Block a user