~jadedctrl/jam-xwx-moe

~jadedctrl/jam-xwx-moe/pleroma/push.sh
 ..
0 #!/bin/sh
1
2 RSYNC_DRYRUN="--dry-run"
3 if test "$1" = "--real"; then
4 RSYNC_DRYRUN=""
5 fi
6
7 if test ! -d "static/emoji"; then
8 pushd ../bildosignoj/
9 sh ../bildosignoj/elporti.sh ../pleroma/static/emoji/
10 popd
11
12 pushd static/emoji
13 mv Flagoj/*/*.png Flagoj/
14 mv Gutkatoj/movbildoj/* Gutkatoj/
15 mv Moneroj/*/*.png Moneroj/
16 popd
17 fi
18
19 rsync $RSYNC_DRYRUN --recursive --delete --archive --verbose static/ $(whoami)@xwx.moe:/opt/pleroma/instance/static.local/
20 rsync $RSYNC_DRYRUN --verbose prod.exs $(whoami)@xwx.moe:/opt/pleroma/config/prod.exs
21
22 if test "$RSYNC_DRYRUN" = "--dry-run"; then
23 echo "=================================================="
24 echo "Ran in --dry-run mode!"
25 echo "Try '$(basename "$0") --real' if the output seems OK."
26 echo "=================================================="
27 fi