Vlad's collection of libraries
# Via GIT:
git clone https://github.com/vghn/vgs.git ~/vgs
# Via GIT (as root):
sudo git clone https://github.com/vghn/vgs.git /opt/vgs
# Via WGet
wget -O- https://github.com/vghn/vgs/archive/master.tar.gz | tar xz
mv ./vgs-master ~/vgs
# Load VGS library (https://github.com/vghn/vgs)
# shellcheck disable=1090
. "${VGS_PATH:-${HOME}/vgs}/load.sh" || { echo 'VGS library is required' >&2; exit 1; }
Cron job to update every hour (10 minutes past)
cat << EOF > /etc/cron.d/vgs-update
SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
10 * * * * root ( cd /opt/vgs && git fetch --all 2>&1 && git reset --hard origin/master 2>&1 ) | logger -it vgs-update
EOF
Check the comment of each function
Check the comment of each script
See CONTRIBUTING.md file.
Licensed under the Apache License, Version 2.0. See LICENSE file.