make sync script public

This commit is contained in:
Ben
2021-03-04 01:55:13 -05:00
parent 5e8f6d49a7
commit f43a5d3875

View File

@@ -16,7 +16,10 @@ else
echo $RCLONE_DATA | base64 -d > /home/coder/.config/rclone/rclone.conf
echo "Syncing files..."
rclone sync ${RCLONE_SOURCE:-"/home/coder/"} ${RCLONE_REMOTE_NAME:-code-server-remote}:${RCLONE_DESTINATION:-code-server-files}
touch /home/coder/sync_remote.sh && chmod +x /home/coder/sync_remote.sh
echo "rclone sync ${RCLONE_SOURCE:-"/home/coder/"} ${RCLONE_REMOTE_NAME:-code-server-remote}:${RCLONE_DESTINATION:-code-server-files}" > /home/coder/sync_remote.sh
/home/coder/sync_remote.sh
fi
# Now we can run code-server with the default entrypoint