Update pihole-sync
This commit is contained in:
14
pihole-sync
14
pihole-sync
@@ -130,7 +130,7 @@ push_initialize () {
|
|||||||
|
|
||||||
# Add all lists to local Git repo
|
# Add all lists to local Git repo
|
||||||
$SUDO git add .
|
$SUDO git add .
|
||||||
echo "Local Pi-hole initialized in Push mode and local lists were added to local Git repo. Run 'pihole-cloudsync --push' to push to remote Git repo.";
|
echo "Local Pi-hole initialized in Push mode and local lists were added to local Git repo. Run '${personal_git_dir}/pihole-sync --push' to push to remote Git repo.";
|
||||||
}
|
}
|
||||||
pull_initialize () {
|
pull_initialize () {
|
||||||
# Go to Pi-hole directory, exit if doesn't exist
|
# Go to Pi-hole directory, exit if doesn't exist
|
||||||
@@ -160,7 +160,7 @@ pull_initialize () {
|
|||||||
|
|
||||||
# Display success messages
|
# Display success messages
|
||||||
echo "Local Pi-hole initialized in Pull mode and first pull successfully completed.";
|
echo "Local Pi-hole initialized in Pull mode and first pull successfully completed.";
|
||||||
echo "Future pulls can now be perfomed with 'pihole-cloudsync --pull'.";
|
echo "Future pulls can now be perfomed with '${personal_git_dir}/pihole-sync --pull'.";
|
||||||
}
|
}
|
||||||
push () {
|
push () {
|
||||||
# Go to Pi-hole directory, exit if doesn't exist
|
# Go to Pi-hole directory, exit if doesn't exist
|
||||||
@@ -255,7 +255,7 @@ for arg in "$@"; do
|
|||||||
# Help - Displays help dialog
|
# Help - Displays help dialog
|
||||||
elif [ "$arg" == "--help" ] || [ "$arg" == "-h" ] || [ "$arg" == "-?" ]; then
|
elif [ "$arg" == "--help" ] || [ "$arg" == "-h" ] || [ "$arg" == "-?" ]; then
|
||||||
cat <<- EOF
|
cat <<- EOF
|
||||||
Usage: pihole-cloudsync <option>
|
Usage: ${personal_git_dir}/pihole-sync <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
|
||||||
@@ -266,16 +266,16 @@ for arg in "$@"; do
|
|||||||
--version, -v Show the current version of pihole-cloudsync
|
--version, -v Show the current version of pihole-cloudsync
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
'pihole-cloudsync --push' will push (upload) your lists to a Git repo
|
'${personal_git_dir}/pihole-sync --push' will push (upload) your lists to a Git repo
|
||||||
'pihole-cloudsync --pull' will pull (download) your lists from a Git repo from origin/master
|
'${personal_git_dir}/pihole-sync --pull' will pull (download) your lists from a Git repo from origin/master
|
||||||
'pihole-cloudsync --pull main' will pull (download) your lists from a Git repo from origin/main
|
'${personal_git_dir}/pihole-sync --pull main' will pull (download) your lists from a Git repo from origin/main
|
||||||
|
|
||||||
Project Home: https://github.com/stevejenkins/pihole-cloudsync
|
Project Home: https://github.com/stevejenkins/pihole-cloudsync
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Version - Displays version number
|
# Version - Displays version number
|
||||||
elif [ "$arg" == "--version" ] || [ "$arg" == "-v" ]; then
|
elif [ "$arg" == "--version" ] || [ "$arg" == "-v" ]; then
|
||||||
echo 'pihole-cloudsync v'$version' - Updated '"$update";
|
echo '${personal_git_dir}/pihole-sync v'$version' - Updated '"$update";
|
||||||
echo 'https://github.com/stevejenkins/pihole-cloudsync';
|
echo 'https://github.com/stevejenkins/pihole-cloudsync';
|
||||||
|
|
||||||
# Invalid command line option was passed
|
# Invalid command line option was passed
|
||||||
|
|||||||
Reference in New Issue
Block a user