Commit e8ad8c31 authored by 张三's avatar 张三

Replace webget_t.sh

parent 5fd3589f
#!/bin/bash #!/bin/bash
WEB_HASH=`./apps/webget cs144.keithw.org /hasher/xyzzy | tee /dev/stderr | tail -n 1` /headless/sponge/tap.sh start
service apache2 start
echo "QWx0NhMPkoM/bJr/ohvHXlviFhOyYrYb+qqdOnwLYo4" > /var/www/html/xyzzy
WEB_HASH=`./apps/webget 169.254.10.1 /xyzzy | tee /dev/stderr | tail -n 1`
CORRECT_HASH="QWx0NhMPkoM/bJr/ohvHXlviFhOyYrYb+qqdOnwLYo4" CORRECT_HASH="QWx0NhMPkoM/bJr/ohvHXlviFhOyYrYb+qqdOnwLYo4"
if [ "${WEB_HASH}" != "${CORRECT_HASH}" ]; then if [ "${WEB_HASH}" != "${CORRECT_HASH}" ]; then
......
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