mirror of
https://github.com/YunoHost-Apps/pluxml_ynh.git
synced 2024-09-03 20:16:02 +02:00
testing
This commit is contained in:
parent
818e73a589
commit
3c0bce1caa
1 changed files with 2 additions and 7 deletions
|
@ -55,14 +55,9 @@ sudo yunohost app ssowatconf
|
||||||
#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 /tmp/install_page.html https://$domain/$path/install.php >/dev/null 2>&1
|
||||||
#get the token for form validation
|
#get the token for form validation
|
||||||
page=$(cat /tmp/install_page.html)
|
token=$(sudo cat /tmp/install_page.html | grep "input" | grep "token" | tail -1 | cut -d' ' -f3 | cut -d'"' -f2)
|
||||||
input=$(echo $page | grep "input")
|
|
||||||
token_lines=$(echo $input | grep "token")
|
|
||||||
last_token_line=$(echo $token_lines | tail -1)
|
|
||||||
token_line_attribute=$(echo $last_token_line | cut -d' ' -f3)
|
|
||||||
token_value=$(echo token_line_attribute | cut -d'"' -f2)
|
|
||||||
#send http POST values
|
#send http POST values
|
||||||
sudo curl -k -X POST --data "default_lang=fr&timezone=Greenland&install=Installer&name=$admin&login=$admin&pwd=$password&pwd2=$password&token=$token_value" https://$domain/$path/install.php >/dev/null 2>&1
|
sudo 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
|
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
|
||||||
|
|
Loading…
Reference in a new issue