mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Ensure the response is a proper http response.
Tested that cloud-set-guest-password.sh still works after this change. Reviewed-by: Daan Hoogland <daan@onecht.net>
This commit is contained in:
parent
6dd30eaf14
commit
a72f14ea9c
@ -48,7 +48,7 @@ replace_in_file() {
|
|||||||
get_value() {
|
get_value() {
|
||||||
local filename=$1
|
local filename=$1
|
||||||
local keyname=$2
|
local keyname=$2
|
||||||
grep -i $keyname= $filename | cut -d= -f2
|
grep -i "^$keyname=" $filename | cut -d= -f2
|
||||||
}
|
}
|
||||||
|
|
||||||
ip=$1
|
ip=$1
|
||||||
@ -70,7 +70,7 @@ do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# echo -e \"\\\"HTTP/1.0 200 OK\\\nDocumentType: text/plain\\\n\\\n\\\"\";
|
echo -ne "HTTP/1.0 200 OK\r\nDocumentType: text/plain\r\n\r\n"
|
||||||
|
|
||||||
if [ "$request" == "send_my_password" ]
|
if [ "$request" == "send_my_password" ]
|
||||||
then
|
then
|
||||||
@ -98,6 +98,4 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# echo -e \"\\\"\\\n\\\"\"
|
|
||||||
|
|
||||||
unlock_exit 0 $lock $locked
|
unlock_exit 0 $lock $locked
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user