borg script is totally general, without secrets

This commit is contained in:
flyingscorpio@arch-desktop 2020-10-27 14:08:45 +01:00
parent 2be447b3c0
commit eaf92853e9

View file

@ -34,11 +34,12 @@ if [ "$1" = '-h' ]; then
fi
if [ ! "$UID" -eq 0 ]; then
echo "You have to run this as root" && exit 1
echo "You have to run this as root!" && exit 1
fi
[ "$1" = '-f' ] || stat_cache_file
# shellcheck source=./secrets
source /home/*/SetupCockpit/secrets
touch "$cache_file"