Skip to content

Commit b954c4e

Browse files
committed
Removed dependency for screen
1 parent 4b4d499 commit b954c4e

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,11 @@ RUN apt-get update && apt-get install -y \
1414
fuse \
1515
unionfs-fuse \
1616
bc \
17-
screen \
1817
unzip \
1918
wget
2019

2120
RUN apt-get update && apt-get install -y ca-certificates && update-ca-certificates && apt-get install -y openssl
2221
RUN sed -i 's/#user_allow_other/user_allow_other/' /etc/fuse.conf
23-
RUN chmod 777 /var/run/screen
2422

2523
# MongoDB 3.4
2624
RUN \

scripts/mount.script

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ mount_gdrive () {
2929
# Mount GD if not already mounted.
3030
if [ $(ps -ef | grep "plexdrive" | grep -v "grep" | wc -l) == "0" ]; then
3131
echo "[ $(date $(printenv DATE_FORMAT)) ] Mounting Google Drive mountpoint: ${cloud_dir}"
32-
echo "screen -dmS plexdrive plexdrive $mongo $plexdrive_options ${cloud_dir}"
33-
screen -dmS plexdrive plexdrive $mongo $plexdrive_options "${cloud_dir}"
32+
plexdrive $mongo $plexdrive_options "${cloud_dir}" &
3433
else
3534
echo "[ $(date $(printenv DATE_FORMAT)) ] Google Drive mountpoint: ${cloud_dir} already mounted."
3635
fi
@@ -53,10 +52,9 @@ mount_local_media () {
5352

5453
if [ $(ps -ef | grep "rclone" | grep -v "grep" | wc -l) == "0" ]; then
5554
echo "[ $(date $(printenv DATE_FORMAT)) ] Mounting decrypted Google Drive: ${cloud_decrypt_dir}"
56-
echo "rclone mount $rclone_mount_options $@ $(printenv RCLONE_LOCAL_ENDPOINT) ${cloud_decrypt_dir}"
5755
rclone mount $rclone_mount_options "$@" "$(printenv RCLONE_LOCAL_ENDPOINT)" "${cloud_decrypt_dir}" &
5856
else
59-
echo "[ $(date $(printenv DATE_FORMAT)) ] Decrypted Google Drive mountpoint: ${cloud_decrypt_dir} already mounted."
57+
echo "[ $(date $(printenv DATE_FORMAT)) ] Decrypted mountpoint: ${cloud_decrypt_dir} already mounted."
6058
fi
6159
}
6260

@@ -80,15 +78,12 @@ mount_union () {
8078

8179
# Mount plex media directory if not already mounted.
8280
if [ $(ps -ef | grep "unionfs" | grep -v "grep" | wc -l) == "0" ]; then
83-
echo "[ $(date $(printenv DATE_FORMAT)) ] Mounting Plex library mountpoint: ${local_media_dir}"
84-
8581
ufs_mounts="${local_decrypt_dir}=RW:${cloud_decrypt_dir}=RO"
8682

87-
echo "[ $(date $(printenv DATE_FORMAT)) ] Mounting union of ${local_decrypt_dir} and ${cloud_decrypt_dir}: ${local_media_dir}"
88-
echo "unionfs $ufs_options ${ufs_mounts} ${local_media_dir}"
83+
echo "[ $(date $(printenv DATE_FORMAT)) ] Mounting union: ${local_media_dir}"
8984
unionfs $ufs_options "${ufs_mounts}" "${local_media_dir}"
9085
else
91-
echo "[ $(date $(printenv DATE_FORMAT)) ] Plex library mountpoint: ${local_media_dir} already mounted."
86+
echo "[ $(date $(printenv DATE_FORMAT)) ] Union mountpoint: ${local_media_dir} already mounted."
9287
fi
9388
}
9489

@@ -102,4 +97,6 @@ else
10297
mount_local_media
10398
fi
10499
mount_union
105-
fi
100+
fi
101+
102+
exit 0

0 commit comments

Comments
 (0)