Skip to content

Commit 0f9643b

Browse files
committed
change env var to avoid conflcit with rclone
1 parent dddc9d0 commit 0f9643b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

railway-entrypoint.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ START_DIR=${1:-/home/coder/project}
77
[ -z "${GIT_REPO}" ] && echo "No GIT_REPO specified"; git clone $GIT_REPO $START_DIR
88

99
# add rclone config and start rclone, if supplied
10-
if [[ -z "${RCLONE_CONFIG}" ]]; then
11-
echo "RCLONE_CONFIG is not specified. Files will not persist"
10+
if [[ -z "${RCLONE_DATA}" ]]; then
11+
echo "RCLONE_DATA is not specified. Files will not persist"
1212
else
1313
echo "Copying rclone config..."
1414
mkdir -p /home/coder/.config/rclone/
1515
touch /home/coder/.config/rclone/rclone.conf
16-
# echo $RCLONE_CONFIG | base64 -d > /home/coder/.config/rclone/rclone.conf
16+
echo $RCLONE_DATA | base64 -d > /home/coder/.config/rclone/rclone.conf
1717

18-
# serve remotee files on the first item in the rclone config
18+
# serve remote files on the first item in the rclone config
1919
# rclone serve sftp code-server-files:/home/coder/ --no-auth --vfs-cache-mode full&
2020
fi
2121

0 commit comments

Comments
 (0)