mirror of
https://github.com/stevejenkins/pihole-cloudsync.git
synced 2024-08-30 18:22:11 +00:00
Release 2.2
This commit is contained in:
parent
b6592719db
commit
3f5f54a527
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user