Commit 23e33709 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack jellyfin-server: fix warning with redefine command in sudoers

parent ae0e1232
...@@ -14,7 +14,7 @@ arch=$(epm print info -a) ...@@ -14,7 +14,7 @@ arch=$(epm print info -a)
PKGURL=$(eget --list --latest "https://download1.rpmfusion.org/free/fedora/releases/42/Everything/$arch/os/Packages/j/" "jellyfin-server*$arch.rpm") PKGURL=$(eget --list --latest "https://download1.rpmfusion.org/free/fedora/releases/42/Everything/$arch/os/Packages/j/" "jellyfin-server*$arch.rpm")
install_pkgurl install_pkgurl || exit
echo "Note: You also need to install jellyfin-web using the command: echo "Note: You also need to install jellyfin-web using the command:
# epm play jellyfin-web # epm play jellyfin-web
...@@ -22,4 +22,4 @@ or change the parameter in /etc/sysconfig/jellyfin: ...@@ -22,4 +22,4 @@ or change the parameter in /etc/sysconfig/jellyfin:
JELLYFIN_WEB_OPT=\"--webdir=/opt/jellyfin-web\" to JELLYFIN_WEB_OPT=\"--nowebclient\" JELLYFIN_WEB_OPT=\"--webdir=/opt/jellyfin-web\" to JELLYFIN_WEB_OPT=\"--nowebclient\"
Warning: Configuration files are stored in /var/lib/jellyfin due to the specifics of the original jellyfin package build. Warning: Configuration files are stored in /var/lib/jellyfin due to the specifics of the original jellyfin package build.
" "
\ No newline at end of file
...@@ -6,7 +6,7 @@ SPEC="$2" ...@@ -6,7 +6,7 @@ SPEC="$2"
. $(dirname $0)/common.sh . $(dirname $0)/common.sh
move_to_opt /usr/lib64/jellyfin move_to_opt /usr/lib64/jellyfin
#wrong link; remake #wrong link; remake
remove_file /opt/jellyfin-server/jellyfin-web remove_file /opt/jellyfin-server/jellyfin-web
...@@ -22,6 +22,10 @@ subst 's|JELLYFIN_WEB_OPT="--webdir=/usr/share/jellyfin-web"|JELLYFIN_WEB_OPT="- ...@@ -22,6 +22,10 @@ subst 's|JELLYFIN_WEB_OPT="--webdir=/usr/share/jellyfin-web"|JELLYFIN_WEB_OPT="-
# because it runs as the jellyfin user, not root # because it runs as the jellyfin user, not root
subst 's|JELLYFIN_CONFIG_DIR="/etc/jellyfin"|JELLYFIN_CONFIG_DIR="/var/lib/jellyfin"|' $BUILDROOT/etc/sysconfig/jellyfin subst 's|JELLYFIN_CONFIG_DIR="/etc/jellyfin"|JELLYFIN_CONFIG_DIR="/var/lib/jellyfin"|' $BUILDROOT/etc/sysconfig/jellyfin
# /etc/sudoers.d/jellyfin-sudoers:4:95: duplicate Cmnd_Alias "STOPSERVER_SYSTEMD", previously defined at /etc/sudoers.d/jellyfin-sudoers:4:12
# Cmnd_Alias STOPSERVER_SYSTEMD = /usr/bin/systemctl stop jellyfin, /bin/systemctl stop jellyfin
subst 's|, /bin/systemctl.*||' $BUILDROOT/etc/sudoers.d/jellyfin-sudoers
# This is required for ALT systems # This is required for ALT systems
if [ "$(epm print info -s)" = "alt" ]; then if [ "$(epm print info -s)" = "alt" ]; then
echo DOTNET_ROOT=/usr/lib64/dotnet >> $BUILDROOT/etc/sysconfig/jellyfin echo DOTNET_ROOT=/usr/lib64/dotnet >> $BUILDROOT/etc/sysconfig/jellyfin
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment