Fix update script
parent
a0589b4275
commit
a45d78db54
|
@ -23,9 +23,6 @@ BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||||
TMPFILE=$(mktemp "${TMPDIR:-/tmp}/curldata.XXXXXX")
|
TMPFILE=$(mktemp "${TMPDIR:-/tmp}/curldata.XXXXXX")
|
||||||
FORGED_SCRIPT=$(mktemp "${TMPDIR:-/tmp}/updatesh.XXXXXX")
|
FORGED_SCRIPT=$(mktemp "${TMPDIR:-/tmp}/updatesh.XXXXXX")
|
||||||
|
|
||||||
echo $(basename ${0})
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
echo -e "\e[32mChecking for newer update script...\e[90m"
|
echo -e "\e[32mChecking for newer update script...\e[90m"
|
||||||
curl -#o ${TMPFILE} https://raw.githubusercontent.com/mailcow/mailcow-dockerized/${BRANCH}/update.sh
|
curl -#o ${TMPFILE} https://raw.githubusercontent.com/mailcow/mailcow-dockerized/${BRANCH}/update.sh
|
||||||
if [[ $(sha1sum ${TMPFILE} | awk '{ print $1 }') != $(sha1sum ./update.sh | awk '{ print $1 }') ]]; then
|
if [[ $(sha1sum ${TMPFILE} | awk '{ print $1 }') != $(sha1sum ./update.sh | awk '{ print $1 }') ]]; then
|
||||||
|
|
Loading…
Reference in New Issue