Update
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
# Check, if a configuration directory exists
|
# Check, if a configuration directory exists
|
||||||
cp /etc/rclone.conf /root/.rclone.conf
|
cp /etc/plexdrv/rclone.conf /root/.rclone.conf
|
||||||
if [[ -d /config/Library ]]
|
if [[ -d /config/Library ]]
|
||||||
then
|
then
|
||||||
echo "Configuration found, skipping restore of backup"
|
echo "Configuration found, skipping restore of backup"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ done
|
|||||||
mkdir -pv /Video
|
mkdir -pv /Video
|
||||||
chmod 777 /Video
|
chmod 777 /Video
|
||||||
|
|
||||||
s6-setuidgid plex gocryptfs -passfile /config/enc-pwd /encrypted/Video/ /Video
|
s6-setuidgid plex gocryptfs -passfile /etc/plexdrv/enc-pwd /encrypted/Video/ /Video
|
||||||
|
|
||||||
|
|
||||||
until false
|
until false
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
while [ ! -f "/config/config.json" ] || [ ! -f "/config/token.json" ]
|
while [ ! -f "/etc/plexdrv/config.json" ] || [ ! -f "/etc/plexdrv/token.json" ]
|
||||||
do
|
do
|
||||||
echo "Waiting for plexdrive configuration files ..."
|
echo "Waiting for plexdrive configuration files ..."
|
||||||
sleep 30
|
sleep 30
|
||||||
@@ -10,7 +10,7 @@ umask 022
|
|||||||
|
|
||||||
IFS=" " read -r -a RUN_ARRAY <<< "$RUN_OPTS"
|
IFS=" " read -r -a RUN_ARRAY <<< "$RUN_OPTS"
|
||||||
|
|
||||||
mount_command="plexdrive mount -c /config/ --cache-file=/cache/cache.bolt -v 3 --umask=0777 --chunk-size=100M --uid=$PLEX_UID --gid=$PLEX_GID -o allow_other /encrypted ${RUN_ARRAY[@]}"
|
mount_command="plexdrive mount -c /etc/plexdrv/ --cache-file=/cache/cache.bolt -v 3 --umask=0777 --chunk-size=100M --uid=$PLEX_UID --gid=$PLEX_GID -o allow_other /encrypted ${RUN_ARRAY[@]}"
|
||||||
|
|
||||||
echo "Executing => $mount_command"
|
echo "Executing => $mount_command"
|
||||||
mkdir /encrypted /decrypted
|
mkdir /encrypted /decrypted
|
||||||
|
|||||||
Reference in New Issue
Block a user