#!/bin/sh # Copy gitea/custom/templates and gitea/custom/public onto green-tea's volume (/data/gitea, Gitea's custom directory), # replacing the copies there, then restart Gitea so it reads the templates. With --no-restart the next deploy does it. set -eu cd "$(dirname "$0")/custom" COPYFILE_DISABLE=1 tar czf - templates public | fly ssh console -a green-tea -C "sh -c 'set -e; cd /data/gitea; rm -rf templates public; tar xzf -; chown -R git:git templates public; find templates public -type f | sort'" [ "${1:-}" = "--no-restart" ] || fly apps restart green-tea