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
|
# pihole-cloudsync
|
||||||
# Helper script to keep multiple Pi-holes' lists synchronized via Git
|
# 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
|
# SETUP
|
||||||
# Follow the instructions in the README to set up your own private Git
|
# Follow the instructions in the README to set up your own private Git
|
||||||
@ -16,8 +16,8 @@
|
|||||||
# OPTIONS:
|
# OPTIONS:
|
||||||
# --push, --upload, --up, -u Push (upload) your Pi-hole lists to a remote Git repo
|
# --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
|
# --pull, --download, --down, -d Pull (download) your lists from a remote Git repo
|
||||||
# --pushinit Initialize Primary Pi-hole in "Push" mode
|
# --initpush Initialize Primary Pi-hole in "Push" mode
|
||||||
# --pullinit Initialize Secondary Pi-hole in "Pull" mode
|
# --initpull Initialize Secondary Pi-hole in "Pull" mode
|
||||||
# --help, -h, -? Show this help dialog
|
# --help, -h, -? Show this help dialog
|
||||||
|
|
||||||
# EXAMPLES:
|
# EXAMPLES:
|
||||||
@ -107,17 +107,17 @@ if [ -z "$1" ]
|
|||||||
echo "Missing command line option. Try --push, --pull, or --help."
|
echo "Missing command line option. Try --push, --pull, or --help."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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 "$@"
|
for arg in "$@"
|
||||||
do
|
do
|
||||||
# Initialize - adds primary Pi-hole's lists to local Git repo before first push/upload
|
# Initialize - adds primary Pi-hole's lists to local Git repo before first push/upload
|
||||||
if [ "$arg" == "--pushinit" ]
|
if [ "$arg" == "--initpush" ]
|
||||||
then
|
then
|
||||||
echo "$arg option detected. Initializing local Git repo for Push/Upload.";
|
echo "$arg option detected. Initializing local Git repo for Push/Upload.";
|
||||||
push_initialize
|
push_initialize
|
||||||
exit 0
|
exit 0
|
||||||
# Initialize - adds primary Pi-hole's lists to local Git repo before first push/upload
|
# Initialize - adds primary Pi-hole's lists to local Git repo before first push/upload
|
||||||
elif [ "$arg" == "--pullinit" ]
|
elif [ "$arg" == "--initpull" ]
|
||||||
then
|
then
|
||||||
echo "$arg option detected. Initializing local Git repo for Pull/Download.";
|
echo "$arg option detected. Initializing local Git repo for Pull/Download.";
|
||||||
pull_initialize
|
pull_initialize
|
||||||
@ -143,8 +143,8 @@ Usage: pihole-cloudsync <option>
|
|||||||
Options:
|
Options:
|
||||||
--push, --upload, --up, -u Push (upload) your Pi-hole lists to a remote Git repo
|
--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
|
--pull, --download, --down, -d Pull (download) your lists from a remote Git repo
|
||||||
--pushinit Initialize Primary Pi-hole in "Push" mode
|
--initpush Initialize Primary Pi-hole in "Push" mode
|
||||||
--pullinit Initialize Secondary Pi-hole in "Pull" mode
|
--initpull Initialize Secondary Pi-hole in "Pull" mode
|
||||||
--help, -h, -? Show this help dialog
|
--help, -h, -? Show this help dialog
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
Loading…
Reference in New Issue
Block a user