1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pluxml_ynh.git synced 2024-09-03 20:16:02 +02:00

trying something

This commit is contained in:
matlink 2014-11-13 22:19:08 +01:00 committed by Moul
parent 1dab3f13b6
commit ff66175225

View file

@ -54,11 +54,11 @@ sudo yunohost app ssowatconf
#make request to install app #make request to install app
#get the html page #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 #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 #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 sudo chmod 750 -R $final_path
# If app is private, remove url to SSOWat conf from skipped_uris # If app is private, remove url to SSOWat conf from skipped_uris