Skip to content

Commit

Permalink
Release 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejenkins committed Jul 10, 2019
1 parent b659271 commit 3f5f54a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pihole-cloudsync
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 3f5f54a

Please sign in to comment.