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,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