Files
pms/root/etc/services.d/gocryptfs/run
2019-12-01 21:43:13 +01:00

22 lines
427 B
Plaintext

#!/usr/bin/with-contenv bash
mkdir /encrypted
rm -Rf /root/.cache
rclone mount --daemon --allow-other gcache:/ /encrypted --log-file /tmp/rclone.log --log-level DEBUG
while [ ! -f "/encrypted/gocryptfs.conf" ]
do
echo "Waiting for gocryptfs.conf to appear..."
sleep 1
done
mkdir -pv /Video
chmod 777 /Video
s6-setuidgid plex gocryptfs -passfile /etc/plexdrv/enc-pwd /encrypted/ /Video
until false
do
true
sleep 1
done