Skip to content

Commit

Permalink
fix: change worker to s6 v3
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloromeo committed Jul 23, 2024
1 parent fec2f40 commit 5cf6556
Show file tree
Hide file tree
Showing 17 changed files with 38 additions and 0 deletions.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/with-contenv bash

echo "**** Running npm install ****"
cd /app
npm install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oneshot
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/2-npm-install/run
14 changes: 14 additions & 0 deletions worker/docker-mod/root/etc/s6-overlay/s6-rc.d/3-install-shim/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/with-contenv bash

if file /usr/lib/plexmediaserver/'Plex Media Server' | grep -iq ASCII ; then
echo "**** Root executable is already clusterplex-worker, only update ****"
else
echo "**** Root executable is still original, rename ****"
mv /usr/lib/plexmediaserver/'Plex Media Server' /usr/lib/plexmediaserver/pms_original
fi

echo "**** Move shim to destination ****"
cp /app/start.sh /usr/lib/plexmediaserver/'Plex Media Server'

echo "**** Make the shim executable ****"
chmod +x /usr/lib/plexmediaserver/'Plex Media Server'
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oneshot
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/3-install-shim/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/with-contenv bash

echo "**** Setting up codecs directory ****"
if [ -d "/codecs" ]
then
echo "Directory already present"
else
echo "Creating /codecs"
mkdir -p /codecs
fi

echo "**** Changing ownership for /codecs ****"
chown abc:abc /codecs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oneshot
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/4-setup-nginx/run
Empty file.
Empty file.
Empty file.
Empty file.

0 comments on commit 5cf6556

Please sign in to comment.