mirror of
https://gitlab.com/robocopAlpha/pihole_lists.git
synced 2026-05-18 02:42:25 -07:00
simplified updates
as the idea is to generate blocklists daily, the update package will be downloaded daily without checksum. Easier this way. Can implement checksum of the update package if needed.
This commit is contained in:
parent
fb0c673e48
commit
4e52559f79
4 changed files with 25 additions and 40 deletions
22
set_env.sh
22
set_env.sh
|
|
@ -28,19 +28,19 @@ fi
|
|||
|
||||
#--- Set parameters based on Distribution
|
||||
if [ "$(uname)" == "Darwin" ]; then
|
||||
# echo "Setting params for Darwin..."
|
||||
getMD5(){
|
||||
# usage: getMD5 'filename' > outfile
|
||||
echo "$(md5 -q ${1})"
|
||||
}
|
||||
# echo "Setting params for Darwin..."
|
||||
# getMD5(){
|
||||
# # usage: getMD5 'filename' > outfile
|
||||
# echo "$(md5 -q ${1})"
|
||||
# }
|
||||
HOME_DIR=/Users/deepankar/OneDrive\ -\ O365\ Turun\ yliopisto/Git/Gitlab.DC
|
||||
elif [ "$(uname)" == "Linux" ]; then
|
||||
# echo "Setting params for Linux..."
|
||||
getMD5()
|
||||
{
|
||||
# usage: getMD5 'filename' > outfile
|
||||
echo "$(md5sum ${1} | cut -c -32)"
|
||||
}
|
||||
# echo "Setting params for Linux..."
|
||||
# getMD5()
|
||||
# {
|
||||
# # usage: getMD5 'filename' > outfile
|
||||
# echo "$(md5sum ${1} | cut -c -32)"
|
||||
# }
|
||||
HOME_DIR=/home/dietpi
|
||||
else
|
||||
echo "Only MacOS and Linux are supported."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue