Commit 92261576 authored by Rafael Monnerat's avatar Rafael Monnerat

Add md5 check base-setup

parent 19beb682
#!/bin/bash
FUNCTION_COMMON_SCRIPT_MD5=c2c47abe028a98d5b9309116816efe9f
wget --no-check-certificate https://lab.nexedi.cn/rafael/slapos.playbook/raw/master/install/function-common -O /tmp/function-common
if [ "`md5sum /tmp/function-common | cut -f1 -d\ `" != "$FUNCTION_COMMON_SCRIPT_MD5" ]; then
echo "ERROR: /tmp/function-common has wrong md5 `md5sum /tmp/function-common | cut -f1 -d\ ` != $FUNCTION_COMMON_SCRIPT_MD5"
exit 1
fi
source /tmp/function-common
function download_playbook {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment