A few more missing replacements of Emby

This commit is contained in:
Joshua Boniface 2018-12-09 19:09:43 -05:00
parent 5090eeb215
commit e9122b76ff
10 changed files with 39 additions and 39 deletions

8
debian/bin/jellyfin vendored
View File

@ -29,19 +29,19 @@ if [[ "$JELLYFIN_USER" != "jellyfin" ]]; then
else else
echo "WARNING: The runas user is not part of jellyfin group and you don't have enough privileges to add it. The restart button in the GUI will probably fail." echo "WARNING: The runas user is not part of jellyfin group and you don't have enough privileges to add it. The restart button in the GUI will probably fail."
echo "To solve this start the jellyfin service using the startup scripts (systemd/sysv) or" echo "To solve this start the jellyfin service using the startup scripts (systemd/sysv) or"
echo "add the runas user ($JELLYFIN_USER) to the jellyfin group manually and restart Emby." echo "add the runas user ($JELLYFIN_USER) to the jellyfin group manually and restart Jellyfin."
fi fi
fi fi
fi fi
# Data directory where Emby database, cache and logs are stored # Data directory where Jellyfin database, cache and logs are stored
PROGRAMDATA=$JELLYFIN_DATA PROGRAMDATA=$JELLYFIN_DATA
PROGRAMDATA_OPT="-programdata $PROGRAMDATA" PROGRAMDATA_OPT="-programdata $PROGRAMDATA"
# Path to store PID file # Path to store PID file
PIDFILE=$JELLYFIN_PIDFILE PIDFILE=$JELLYFIN_PIDFILE
# Full path of Emby binary # Full path of Jellyfin binary
JELLYFIN_EXEC=$JELLYFIN_BIN JELLYFIN_EXEC=$JELLYFIN_BIN
# Path of jellyfin program files # Path of jellyfin program files
@ -66,7 +66,7 @@ MONO_EXEC_OPTS=$MONO_OPTS
# restart function # restart function
RESTART_OPTS="-restartpath ${JELLYFIN_PATH}/restart.sh" RESTART_OPTS="-restartpath ${JELLYFIN_PATH}/restart.sh"
# Emby options # Jellyfin options
JELLYFIN_OPTS="$PROGRAMDATA_OPT $RESTART_OPTS $JELLYFIN_ADD_OPTS" JELLYFIN_OPTS="$PROGRAMDATA_OPT $RESTART_OPTS $JELLYFIN_ADD_OPTS"
PID_PATH=$(dirname $PIDFILE) PID_PATH=$(dirname $PIDFILE)

2
debian/control vendored
View File

@ -13,5 +13,5 @@ Breaks: mediabrowser, emby, emby-server-beta, jellyfin-dev, emby-server
Conflicts: mediabrowser, emby, emby-server-beta, jellyfin-dev, emby-server Conflicts: mediabrowser, emby, emby-server-beta, jellyfin-dev, emby-server
Architecture: all Architecture: all
Depends: ${shlibs:Depends}, ${misc:Depends}, at, libsqlite3-0, dotnet-runtime-2.1 Depends: ${shlibs:Depends}, ${misc:Depends}, at, libsqlite3-0, dotnet-runtime-2.1
Description: Emby Server is a home media server. Description: Jellyfin is a home media server.
It is built on top of other popular open source technologies such as Service Stack, jQuery, jQuery mobile, and Mono. It features a REST-based api with built-in documentation to facilitate client development. We also have client libraries for our api to enable rapid development. It is built on top of other popular open source technologies such as Service Stack, jQuery, jQuery mobile, and Mono. It features a REST-based api with built-in documentation to facilitate client development. We also have client libraries for our api to enable rapid development.

View File

@ -8,11 +8,11 @@
## To change the defaults add any of the following settings below the comments ## To change the defaults add any of the following settings below the comments
## ##
## JELLYFIN_USER= #$JELLYFIN_USER, username to run Emby under, the default is jellyfin ## JELLYFIN_USER= #$JELLYFIN_USER, username to run Jellyfin under, the default is jellyfin
## JELLYFIN_GROUP= #$JELLYFIN_GROUP, Jellyfin group where Emby user belongs ## JELLYFIN_GROUP= #$JELLYFIN_GROUP, Jellyfin group where Jellyfin user belongs
## JELLYFIN_DIR= #$JELLYFIN_DIR, the location of Emby program files the default is /usr/lib/jellyfin ## JELLYFIN_DIR= #$JELLYFIN_DIR, the location of Jellyfin program files the default is /usr/lib/jellyfin
## JELLYFIN_BIN= #$JELLYFIN_BIN, full path of MediaBrowser.Server.Mono.exe the default is /usr/lib/jellyfin/bin/MediaBrowser.Server.Mono.exe ## JELLYFIN_BIN= #$JELLYFIN_BIN, full path of MediaBrowser.Server.Mono.exe the default is /usr/lib/jellyfin/bin/MediaBrowser.Server.Mono.exe
## JELLYFIN_DATA= #$JELLYFIN_DATA, the location of Emby data, cache, logs, the default is /var/lib/jellyfin ## JELLYFIN_DATA= #$JELLYFIN_DATA, the location of Jellyfin data, cache, logs, the default is /var/lib/jellyfin
## JELLYFIN_PIDFILE= #$JELLYFIN_PIDFILE, the location of jellyfin.pid, the default is /var/run/jellyfin/jellyfin.pid ## JELLYFIN_PIDFILE= #$JELLYFIN_PIDFILE, the location of jellyfin.pid, the default is /var/run/jellyfin/jellyfin.pid
## JELLYFIN_ADD_OPTS= #$JELLYFIN_ADD_OPTS, additional options to pass to the Jellyfin executable, beyond ffmpeg, ffprobe and restart ## JELLYFIN_ADD_OPTS= #$JELLYFIN_ADD_OPTS, additional options to pass to the Jellyfin executable, beyond ffmpeg, ffprobe and restart
## MONO_BIN= #$MONO_BIN, full path of mono binary, the default is /usr/bin/mono-sgen ## MONO_BIN= #$MONO_BIN, full path of mono binary, the default is /usr/bin/mono-sgen

View File

@ -9,11 +9,11 @@
## Don't edit this file ## Don't edit this file
## Edit user configuration in /etc/jellyfin.conf to change ## Edit user configuration in /etc/jellyfin.conf to change
## ##
## JELLYFIN_USER= #$JELLYFIN_USER, username to run Emby under, the default is jellyfin ## JELLYFIN_USER= #$JELLYFIN_USER, username to run Jellyfin under, the default is jellyfin
## JELLYFIN_GROUP= #$JELLYFIN_GROUP, Jellyfin group where Emby user belongs ## JELLYFIN_GROUP= #$JELLYFIN_GROUP, Jellyfin group where Jellyfin user belongs
## JELLYFIN_DIR= #$JELLYFIN_DIR, the location of Emby program files the default is /usr/lib/jellyfin ## JELLYFIN_DIR= #$JELLYFIN_DIR, the location of Jellyfin program files the default is /usr/lib/jellyfin
## JELLYFIN_BIN= #$JELLYFIN_BIN, full path of MediaBrowser.Server.Mono.exe the default is /usr/lib/jellyfin/bin/MediaBrowser.Server.Mono.exe ## JELLYFIN_BIN= #$JELLYFIN_BIN, full path of MediaBrowser.Server.Mono.exe the default is /usr/lib/jellyfin/bin/MediaBrowser.Server.Mono.exe
## JELLYFIN_DATA= #$JELLYFIN_DATA, the location of Emby data, cache, logs, the default is /var/lib/jellyfin ## JELLYFIN_DATA= #$JELLYFIN_DATA, the location of Jellyfin data, cache, logs, the default is /var/lib/jellyfin
## JELLYFIN_PIDFILE= #$JELLYFIN_PIDFILE, the location of jellyfin.pid, the default is /var/run/jellyfin/jellyfin.pid ## JELLYFIN_PIDFILE= #$JELLYFIN_PIDFILE, the location of jellyfin.pid, the default is /var/run/jellyfin/jellyfin.pid
## JELLYFIN_ADD_OPTS= #$JELLYFIN_ADD_OPTS, additional options to pass to the Jellyfin executable, beyond ffmpeg, ffprobe and restart ## JELLYFIN_ADD_OPTS= #$JELLYFIN_ADD_OPTS, additional options to pass to the Jellyfin executable, beyond ffmpeg, ffprobe and restart
## MONO_BIN= #$MONO_BIN, full path of mono binary, the default is /usr/bin/mono-sgen ## MONO_BIN= #$MONO_BIN, full path of mono binary, the default is /usr/bin/mono-sgen

20
debian/jellyfin.init vendored
View File

@ -1,40 +1,40 @@
### BEGIN INIT INFO ### BEGIN INIT INFO
# Provides: Emby Server # Provides: Jellyfin Media Server
# Required-Start: $local_fs $network # Required-Start: $local_fs $network
# Required-Stop: $local_fs # Required-Stop: $local_fs
# Default-Start: 2 3 4 5 # Default-Start: 2 3 4 5
# Default-Stop: 0 1 6 # Default-Stop: 0 1 6
# Short-Description: Emby Server # Short-Description: Jellyfin Media Server
# Description: Runs Emby Server # Description: Runs Jellyfin Server
### END INIT INFO ### END INIT INFO
# Carry out specific functions when asked to by the system # Carry out specific functions when asked to by the system
pid=`ps -fA|grep dotnet|grep EmbyServer|awk '{print $2}'| tr -d '\n'` pid=`ps -fA|grep dotnet|grep JellyfinServer|awk '{print $2}'| tr -d '\n'`
case "$1" in case "$1" in
start) start)
if [ "$pid" == "" ]; then if [ "$pid" == "" ]; then
echo "Starting Emby..." echo "Starting Jellyfin..."
nohup dotnet /usr/lib/jellyfin/bin/EmbyServer.dll >/dev/null 2>&1 & nohup dotnet /usr/lib/jellyfin/bin/EmbyServer.dll >/dev/null 2>&1 &
else else
echo "Emby already running" echo "Jellyfin already running"
fi fi
;; ;;
stop) stop)
if [ "$pid" != "" ]; then if [ "$pid" != "" ]; then
echo "Stopping Emby..." echo "Stopping Jellyfin..."
kill $pid kill $pid
sleep 2 sleep 2
else else
echo "Emby not running" echo "Jellyfin not running"
fi fi
;; ;;
status) status)
if [ "$pid" != "" ]; then if [ "$pid" != "" ]; then
echo "Emby running as $pid" echo "Jellyfin running as $pid"
ps -f $pid ps -f $pid
else else
echo "Emby is not running" echo "Jellyfin is not running"
fi fi
;; ;;
*) *)

View File

@ -6,8 +6,8 @@
#, fuzzy #, fuzzy
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: emby-server\n" "Project-Id-Version: jellyfin-server\n"
"Report-Msgid-Bugs-To: emby-server@packages.debian.org\n" "Report-Msgid-Bugs-To: jellyfin-server@packages.debian.org\n"
"POT-Creation-Date: 2015-06-12 20:51-0600\n" "POT-Creation-Date: 2015-06-12 20:51-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
@ -20,38 +20,38 @@ msgstr ""
#. Type: note #. Type: note
#. Description #. Description
#: ../templates:1001 #: ../templates:1001
msgid "Emby permission info:" msgid "Jellyfin permission info:"
msgstr "" msgstr ""
#. Type: note #. Type: note
#. Description #. Description
#: ../templates:1001 #: ../templates:1001
msgid "" msgid ""
"Emby by default runs under a user named \"emby\". Please ensure that the " "Jellyfin by default runs under a user named \"jellyfin\". Please ensure that the "
"user emby has read and write access to any folders you wish to add to your " "user jellyfin has read and write access to any folders you wish to add to your "
"library. Otherwise please run emby under a different user." "library. Otherwise please run jellyfin under a different user."
msgstr "" msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:2001 #: ../templates:2001
msgid "Username to run Emby as:" msgid "Username to run Jellyfin as:"
msgstr "" msgstr ""
#. Type: string #. Type: string
#. Description #. Description
#: ../templates:2001 #: ../templates:2001
msgid "The user that emby will run as." msgid "The user that jellyfin will run as."
msgstr "" msgstr ""
#. Type: note #. Type: note
#. Description #. Description
#: ../templates:3001 #: ../templates:3001
msgid "Emby still running" msgid "Jellyfin still running"
msgstr "" msgstr ""
#. Type: note #. Type: note
#. Description #. Description
#: ../templates:3001 #: ../templates:3001
msgid "Emby is currently running. Please close it and try again." msgid "Jellyfin is currently running. Please close it and try again."
msgstr "" msgstr ""

2
debian/postinst vendored
View File

@ -15,7 +15,7 @@ if [[ -f $CONF_FILE ]]; then
. $CONF_FILE . $CONF_FILE
fi fi
# Data directory where Emby database, cache and logs are stored # Data directory where Jellyfin database, cache and logs are stored
PROGRAMDATA=${JELLYFIN_DATA-/var/lib/$NAME} PROGRAMDATA=${JELLYFIN_DATA-/var/lib/$NAME}
case "$1" in case "$1" in

2
debian/postrm vendored
View File

@ -15,7 +15,7 @@ if [[ -f $CONF_FILE ]]; then
. $CONF_FILE . $CONF_FILE
fi fi
# Data directory where Emby database, cache and logs are stored # Data directory where Jellyfin database, cache and logs are stored
PROGRAMDATA=${JELLYFIN_DATA-/var/lib/$NAME} PROGRAMDATA=${JELLYFIN_DATA-/var/lib/$NAME}
# In case this system is running systemd, we make systemd reload the unit files # In case this system is running systemd, we make systemd reload the unit files

4
debian/preinst vendored
View File

@ -15,7 +15,7 @@ if [[ -f $CONF_FILE ]]; then
. $CONF_FILE . $CONF_FILE
fi fi
# Data directory where Emby database, cache and logs are stored # Data directory where Jellyfin database, cache and logs are stored
PROGRAMDATA=${JELLYFIN_DATA-/var/lib/$NAME} PROGRAMDATA=${JELLYFIN_DATA-/var/lib/$NAME}
# In case this system is running systemd, we make systemd reload the unit files # In case this system is running systemd, we make systemd reload the unit files
@ -47,7 +47,7 @@ case "$1" in
sleep 1 sleep 1
# if it's still running, show error # if it's still running, show error
if [[ -n "$(ps -p $JELLYFIN_PID -o pid=)" ]]; then if [[ -n "$(ps -p $JELLYFIN_PID -o pid=)" ]]; then
echo "Could not successfully stop EmbyServer, please do so before uninstalling." echo "Could not successfully stop JellyfinServer, please do so before uninstalling."
exit 1 exit 1
else else
[[ -f $PIDFILE ]] && rm $PIDFILE [[ -f $PIDFILE ]] && rm $PIDFILE

4
debian/prerm vendored
View File

@ -15,7 +15,7 @@ if [[ -f $CONF_FILE ]]; then
. $CONF_FILE . $CONF_FILE
fi fi
# Data directory where Emby database, cache and logs are stored # Data directory where Jellyfin database, cache and logs are stored
PROGRAMDATA=${JELLYFIN_DATA-/var/lib/$NAME} PROGRAMDATA=${JELLYFIN_DATA-/var/lib/$NAME}
case "$1" in case "$1" in
@ -41,7 +41,7 @@ case "$1" in
sleep 1 sleep 1
# if it's still running, show error # if it's still running, show error
if [[ -n "$(ps -p $JELLYFIN_PID -o pid=)" ]]; then if [[ -n "$(ps -p $JELLYFIN_PID -o pid=)" ]]; then
echo "Could not successfully stop EmbyServer, please do so before uninstalling." echo "Could not successfully stop Jellyfin, please do so before uninstalling."
exit 1 exit 1
else else
[[ -f $PIDFILE ]] && rm $PIDFILE [[ -f $PIDFILE ]] && rm $PIDFILE