mirror of
https://github.com/YunoHost-Apps/pluxml_ynh.git
synced 2024-09-03 20:16:02 +02:00
[fix] remove unnecessary sudo
This commit is contained in:
parent
a7b70b00bb
commit
c30389edcd
1 changed files with 2 additions and 2 deletions
|
@ -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 install_page.html https://$domain/$path/install.php >/dev/null 2>&1
|
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 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 \
|
curl -k -X POST \
|
||||||
--data-urlencode "default_lang=$default_lang" \
|
--data-urlencode "default_lang=$default_lang" \
|
||||||
--data-urlencode "install=Installer" \
|
--data-urlencode "install=Installer" \
|
||||||
--data-urlencode "name=$admin" \
|
--data-urlencode "name=$admin" \
|
||||||
|
|
Loading…
Reference in a new issue