capture rclone logs

This commit is contained in:
Ben
2021-03-04 00:31:47 -05:00
parent 78f71f3e45
commit af4db8cc21

View File

@@ -16,7 +16,7 @@ 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} &
rclone sync ${RCLONE_SOURCE:-"/home/coder/"} ${RCLONE_REMOTE_NAME:-code-server-remote}:${RCLONE_DESTINATION:-code-server-files} 2>&1 | tee /tmp/rclone-logs.txt
fi
# Now we can run code-server with the default entrypoint