Release 2.2

This commit is contained in:
Steve Jenkins 2019-07-10 16:31:44 -07:00
parent b6592719db
commit 3f5f54a527

View File

@ -4,7 +4,7 @@
# pihole-cloudsync
# Helper script to keep multiple Pi-holes' lists synchronized via Git
# Version 2.1 - July 10, 2019 - Steve Jenkins (stevejenkins.com)
# Version 2.2 - July 10, 2019 - Steve Jenkins (stevejenkins.com)
# SETUP
# Follow the instructions in the README to set up your own private Git
@ -16,8 +16,8 @@
# OPTIONS:
# --push, --upload, --up, -u Push (upload) your Pi-hole lists to a remote Git repo
# --pull, --download, --down, -d Pull (download) your lists from a remote Git repo
# --pushinit Initialize Primary Pi-hole in "Push" mode
# --pullinit Initialize Secondary Pi-hole in "Pull" mode
# --initpush Initialize Primary Pi-hole in "Push" mode
# --initpull Initialize Secondary Pi-hole in "Pull" mode
# --help, -h, -? Show this help dialog
# EXAMPLES:
@ -107,17 +107,17 @@ if [ -z "$1" ]
echo "Missing command line option. Try --push, --pull, or --help."
exit 1
fi
# Determine which action to perform (Init, Push, Pull, or Help)
# Determine which action to perform (InitPush, InitPull, Push, Pull, or Help)
for arg in "$@"
do
# Initialize - adds primary Pi-hole's lists to local Git repo before first push/upload
if [ "$arg" == "--pushinit" ]
if [ "$arg" == "--initpush" ]
then
echo "$arg option detected. Initializing local Git repo for Push/Upload.";
push_initialize
exit 0
# Initialize - adds primary Pi-hole's lists to local Git repo before first push/upload
elif [ "$arg" == "--pullinit" ]
elif [ "$arg" == "--initpull" ]
then
echo "$arg option detected. Initializing local Git repo for Pull/Download.";
pull_initialize
@ -143,8 +143,8 @@ Usage: pihole-cloudsync <option>
Options:
--push, --upload, --up, -u Push (upload) your Pi-hole lists to a remote Git repo
--pull, --download, --down, -d Pull (download) your lists from a remote Git repo
--pushinit Initialize Primary Pi-hole in "Push" mode
--pullinit Initialize Secondary Pi-hole in "Pull" mode
--initpush Initialize Primary Pi-hole in "Push" mode
--initpull Initialize Secondary Pi-hole in "Pull" mode
--help, -h, -? Show this help dialog
Examples: