Fixes on deployment
This commit is contained in:
parent
df8d348e32
commit
c8b3944857
|
@ -136,12 +136,12 @@ EOF
|
||||||
echo -e " - password: orchestra"
|
echo -e " - password: orchestra"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $(curl -L -k -v -c https://$ip_addr/admin/ -c /tmp/cookies.txt -b /tmp/cookies.txt | grep 'Panel Hosting Management') ]]; then
|
if [[ $(curl -L -k -v -c /tmp/cookies.txt -b /tmp/cookies.txt https://$ip_addr/admin/ | grep 'Panel Hosting Management') ]]; then
|
||||||
token=$(grep csrftoken /tmp/cookies.txt | awk {'print $7'})
|
token=$(grep csrftoken /tmp/cookies.txt | awk {'print $7'})
|
||||||
if [[ $(curl -L -k -v -c /tmp/cookies.txt -b /tmp/cookies.txt \
|
if [[ $(curl -L -k -v -c /tmp/cookies.txt -b /tmp/cookies.txt \
|
||||||
-d "username=$user&password=orchestra&csrfmiddlewaretoken=$token" \
|
-d "username=$user&password=orchestra&csrfmiddlewaretoken=$token" \
|
||||||
https://$ip_addr/admin/login/?next=/admin/ \
|
-e https://$ip_addr/admin/ \
|
||||||
-e https://$ip_addr/admin/ | grep '<title>Panel Hosting Management</title>') ]]; then
|
https://$ip_addr/admin/login/?next=/admin/ | grep '<title>Panel Hosting Management</title>') ]]; then
|
||||||
echo " ** Orchestra appears to be working!"
|
echo " ** Orchestra appears to be working!"
|
||||||
else
|
else
|
||||||
echo " ** Err. Couldn't login :(" >&2
|
echo " ** Err. Couldn't login :(" >&2
|
||||||
|
|
Loading…
Reference in New Issue