From 0810ad1357acdcfa4b33a43c1727a2c16454904e Mon Sep 17 00:00:00 2001 From: matlink Date: Thu, 13 Nov 2014 21:23:25 +0100 Subject: [PATCH] fix syntax typo --- scripts/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 4283444..c7764f3 100644 --- a/scripts/install +++ b/scripts/install @@ -49,9 +49,9 @@ sudo yunohost app setting $app unprotected_uris -v "/" #get the html page curl -kL -o "install_page.html" https://$domain/$path/install.php >/dev/null 2>&1 #get the token for form validation -token = $(cat "install_page.html" | grep "input" | grep "token" | tail -1 | cut -d' ' -f3 | cut -d'"' -f2) +token=$(cat "install_page.html" | grep "input" | grep "token" | tail -1 | cut -d' ' -f3 | cut -d'"' -f2) #send http POST values -curl -k -X POST --data "default_lang=fr&timezone=Greenland&install=Installer&name=$admin&login=$admin&pwd=$password&pwd2=$password&token=$token" https://$domain/$path/install.php +curl -k -X POST --data "default_lang=fr&timezone=Greenland&install=Installer&name=$admin&login=$admin&pwd=$password&pwd2=$password&token=$token" https://$domain/$path/install.php >/dev/null 2>&1 sudo chmod 750 -R $final_path # If app is private, remove url to SSOWat conf from skipped_uris