Update
This commit is contained in:
@@ -1,16 +1,15 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
while [ ! -f "/mnt/G-Cache/Video/gocryptfs.conf" ]
|
||||
while [ ! -f "/encrypted/Video/gocryptfs.conf" ]
|
||||
do
|
||||
echo "Waiting for gocryptfs.conf to appear..."
|
||||
sleep 1
|
||||
done
|
||||
|
||||
mkdir -pv /mnt/Video /crypt/output /crypt/input /Video
|
||||
mkdir -pv /Video
|
||||
chmod 777 /Video
|
||||
|
||||
s6-setuidgid plex gocryptfs -passfile /config/enc-pwd /encrypted/Video/ /Video
|
||||
|
||||
gocryptfs -passfile /root/enc-pwd /mnt/G-Cache/Video/ /mnt/Video
|
||||
cp /mnt/G-Cache/Video/gocryptfs.conf /crypt/output
|
||||
gocryptfs -passfile /root/enc-pwd /crypt/output /crypt/input
|
||||
unionfs -o cow /crypt/input=RW:/mnt/Video=RO /Video
|
||||
|
||||
until false
|
||||
do
|
||||
|
||||
Reference in New Issue
Block a user