mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
Update gravity-sync.sh
This commit is contained in:
parent
5eaf3070aa
commit
20a2cb88fe
@ -312,7 +312,7 @@ function show_version {
|
|||||||
|
|
||||||
# Look for Changes
|
# Look for Changes
|
||||||
function md5_compare {
|
function md5_compare {
|
||||||
primaryMD5=$(ssh \${REMOTE_USER}@\${REMOTE_HOST} 'md5sum /etc/pihole/gravity.db')
|
primaryMD5=$(ssh ${REMOTE_USER}@${REMOTE_HOST} 'md5sum /etc/pihole/gravity.db')
|
||||||
secondMD5=$(md5sum ${PIHOLE_DIR}/${GRAVITY_FI})
|
secondMD5=$(md5sum ${PIHOLE_DIR}/${GRAVITY_FI})
|
||||||
|
|
||||||
if [ "$primaryMD5" == "$secondMD5" ]
|
if [ "$primaryMD5" == "$secondMD5" ]
|
||||||
@ -397,6 +397,9 @@ case $# in
|
|||||||
|
|
||||||
compare)
|
compare)
|
||||||
TASKTYPE='COMPARE'
|
TASKTYPE='COMPARE'
|
||||||
|
|
||||||
|
import_gs
|
||||||
|
|
||||||
echo -e "${GOOD} ${MESSAGE}"
|
echo -e "${GOOD} ${MESSAGE}"
|
||||||
md5_compare
|
md5_compare
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user