Skip to content

Commit a751313

Browse files
committed
Redoing this. Needs to be in systemd script not post install.
The right stuff.
1 parent fe77928 commit a751313

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Diff for: readynas6/debian/plexmediaserver-ros6-binaries.postinst

-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ set -e
2020
case "$1" in
2121
configure)
2222
cp --remove-destination -f /apps/plexmediaserver/Binaries/config.xml /apps/plexmediaserver/config.xml
23-
if [ ! -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" ]; then
24-
mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}"
25-
fi
2623
chown -R admin:admin /apps/plexmediaserver
2724
chattr +C /apps/plexmediaserver
2825
for file in plexmediaserver_environment pre-start.sh fvapp-plexmediaserver.service logo.png

Diff for: readynas6/readynas-files/fvapp-plexmediaserver.service

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ After=network.target
55
[Service]
66
EnvironmentFile=/apps/plexmediaserver/plexmediaserver_environment
77
ExecStartPre=/apps/plexmediaserver/pre-start.sh
8+
ExecStartPre=/bin/sh -c '/usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}"'
89
ExecStart=/bin/sh -c '/apps/plexmediaserver/Binaries/Plex\ Media\ Server'
910
Type=simple
1011

0 commit comments

Comments
 (0)