Skip to content

Commit

Permalink
allow custom template
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed Feb 27, 2024
1 parent 8ccd155 commit fa64674
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mirror-s3.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/bin/sh
echo "Generating rclone config..."
envsubst < /etc/rclone.conf.tmpl > /etc/rclone.conf
TMPL="/etc/rclone.conf.tmp"
if [ -n "$RCLONE_TMPL" ]; then
echo "== USING CUSTOM TEMPLATE =="
TMPL="$RCLONE_TMPL"
fi
envsubst < $TMPL > /etc/rclone.conf

echo "Running rclone sync..."
DEBUG=""
Expand Down

0 comments on commit fa64674

Please sign in to comment.