mirror of
https://github.com/YunoHost-Apps/piwigo_ynh.git
synced 2024-09-03 20:06:03 +02:00
Update upgrade
This commit is contained in:
parent
4e13c21c9a
commit
19fcdae672
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ ynh_mysql_connect_as --user=$db_name --password=$db_pwd --database=$db_name <<<
|
||||||
# Login with admin account
|
# Login with admin account
|
||||||
|
|
||||||
# ... isn't there a way to enable the damn LDAP login plugin from the command line or something ...
|
# ... isn't there a way to enable the damn LDAP login plugin from the command line or something ...
|
||||||
ynh_local_curl "/ws.php?format=json" "method=pwg.session.login" "username=$admin" "password=$admin_pwd"
|
ynh_local_curl "/ws.php?format=json" "method=pwg.session.login" "username=$admin" "password=$password"
|
||||||
# Get session token
|
# Get session token
|
||||||
status=$(ynh_local_curl "/ws.php?format=json" "method=pwg.session.getStatus")
|
status=$(ynh_local_curl "/ws.php?format=json" "method=pwg.session.getStatus")
|
||||||
pwg_token=$(jq --raw-output .result.pwg_token <<< $status)
|
pwg_token=$(jq --raw-output .result.pwg_token <<< $status)
|
||||||
|
|
Loading…
Reference in a new issue