From deaadf9be1c28ef9133cb0d8c74837dc5c4ae0d7 Mon Sep 17 00:00:00 2001 From: Jaidyn Ann <10477760+JadedCtrl@users.noreply.github.com> Date: Tue, 30 Jan 2024 17:04:07 -0600 Subject: [PATCH] =?UTF-8?q?Aldonas=20al=C5=9Dutan=20helposkripton?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- alŝuti.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 alŝuti.sh diff --git a/alŝuti.sh b/alŝuti.sh new file mode 100644 index 0000000..6b72b3d --- /dev/null +++ b/alŝuti.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +RSYNC_DRYRUN="--dry-run" +if test "$1" = "--real"; then + RSYNC_DRYRUN="" +fi + +rsync $RSYNC_DRYRUN --recursive --delete --archive --verbose custom $(whoami)@xwx.moe:/var/lib/forgejo/ + +if test "$RSYNC_DRYRUN" = "--dry-run"; then + echo "==================================================" + echo "Ran in --dry-run mode!" + echo "Try '$(basename "$0") --real' if the output seems OK." + echo "==================================================" + exit 0 +fi + +ssh $(whoami)@xwx.moe /usr/local/bin/update-forgejo-config