mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
add server sync.sh
This commit is contained in:
parent
d8149af962
commit
a77c9ffb84
1 changed files with 10 additions and 7 deletions
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
# created by Tobias Powalowski <tpowa@archlinux.org>
|
||||||
if [[ -e ~/.rsync-running ]]; then
|
if [[ -e ~/.rsync-running ]]; then
|
||||||
echo "ERROR: rsync is already running!"
|
echo "ERROR: rsync is already running!"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -8,3 +10,4 @@ else
|
||||||
rsync -a -q --delete --delete-delay pkg src iso archboot.org:public_html
|
rsync -a -q --delete --delete-delay pkg src iso archboot.org:public_html
|
||||||
rm .rsync-running
|
rm .rsync-running
|
||||||
fi
|
fi
|
||||||
|
# vim: set ft=sh ts=4 sw=4 et:
|
||||||
|
|
Loading…
Reference in a new issue