Skip to content

Commit f43a5d3

Browse files
committed
make sync script public
1 parent 5e8f6d4 commit f43a5d3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

railway-entrypoint.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ else
1616
echo $RCLONE_DATA | base64 -d > /home/coder/.config/rclone/rclone.conf
1717

1818
echo "Syncing files..."
19-
rclone sync ${RCLONE_SOURCE:-"/home/coder/"} ${RCLONE_REMOTE_NAME:-code-server-remote}:${RCLONE_DESTINATION:-code-server-files}
19+
20+
touch /home/coder/sync_remote.sh && chmod +x /home/coder/sync_remote.sh
21+
echo "rclone sync ${RCLONE_SOURCE:-"/home/coder/"} ${RCLONE_REMOTE_NAME:-code-server-remote}:${RCLONE_DESTINATION:-code-server-files}" > /home/coder/sync_remote.sh
22+
/home/coder/sync_remote.sh
2023
fi
2124

2225
# Now we can run code-server with the default entrypoint

0 commit comments

Comments
 (0)