From ff661752256e4a86a651d4c2d49da900b08cef75 Mon Sep 17 00:00:00 2001 From: matlink Date: Thu, 13 Nov 2014 22:19:08 +0100 Subject: [PATCH] trying something --- scripts/install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 248146b..5d02da8 100644 --- a/scripts/install +++ b/scripts/install @@ -54,11 +54,11 @@ sudo yunohost app ssowatconf #make request to install app #get the html page -sudo curl -kL -o /tmp/install_page.html https://$domain/$path/install.php >/dev/null 2>&1 +sudo curl -kL -o install_page.html https://$domain/$path/install.php >/dev/null 2>&1 #get the token for form validation -token=$(sudo cat /tmp/install_page.html | grep "input" | grep "token" | tail -1 | cut -d' ' -f3 | cut -d'"' -f2) +token=$(sudo cat install_page.html | grep "input" | grep "token" | tail -1 | cut -d' ' -f3 | cut -d'"' -f2) #send http POST values -sudo curl -k -X POST --data "default_lang=$default_lang&timezone=Greenland&install=Installer&name=$admin&login=$admin&pwd=$password&pwd2=$password&token=$token" https://$domain/$path/install.php >/dev/null 2>&1 +sudo curl -k -X POST --data "default_lang=$default_lang&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