mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
multimedia/plexpy: Warn users if no timezone is set
If you run plexpy in a jail and do not set the timezone the Plexpy process will fail to start. Several users have run into this.
This commit is contained in:
parent
5e53060395
commit
b02ad7756d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=415508
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= plexpy
|
||||
PORTVERSION= 1.4.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= multimedia python
|
||||
DISTVERSIONPREFIX=v
|
||||
|
||||
|
@ -25,5 +25,15 @@ pidfile=%%PREFIX%%/plexpy/plexpy.pid
|
||||
command_interpreter=%%PYTHON_CMD%%
|
||||
command=%%PREFIX%%/plexpy/PlexPy.py
|
||||
command_args="-d --nolaunch --pid ${pidfile}"
|
||||
start_precmd=plexpy_prestart
|
||||
|
||||
plexpy_prestart()
|
||||
{
|
||||
if ! [ -e /etc/localtime ] ; then
|
||||
echo "Plexpy needs the system timezone to be set."
|
||||
echo "Please run /usr/sbin/tzsetup"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
||||
|
Loading…
Reference in New Issue
Block a user