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:
robocopAlpha 2021-07-16 03:40:56 +03:00
parent fb0c673e48
commit 4e52559f79
4 changed files with 25 additions and 40 deletions

View file

@ -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."