diff options
Diffstat (limited to 'ar/.local')
| -rwxr-xr-x | ar/.local/bin/hugow | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ar/.local/bin/hugow b/ar/.local/bin/hugow index 91189de..efad2fb 100755 --- a/ar/.local/bin/hugow +++ b/ar/.local/bin/hugow @@ -15,6 +15,8 @@ src2="$repodir/public/recordings/" src3="$repodir/public/videos/" bgm="$repodir/static/bgm/" bgmd="/var/www/thesiah/bgm/" +prv="$repodir/static/previews/" +prvd="/var/www/thesiah/previews/" cd "$repodir" hugo --cleanDestinationDir @@ -37,9 +39,14 @@ fi ssh "$server" "mkdir -p '$dest'" ssh "$server" "mkdir -p '$dest2'" ssh "$server" "mkdir -p '$dest3'" +ssh "$server" "mkdir -p '$prvd'" rsync -azv --update --itemize-changes --stats "$bgm" "$server:$bgmd" +if [ -d "$prv" ]; then + rsync -azv --update --itemize-changes --stats "$prv" "$server:$prvd" +fi + if [ -n "${THESIAH_SSH_OPTS:-}" ]; then rsync -azv --update --itemize-changes --stats \ -e "ssh $THESIAH_SSH_OPTS" \ |
