diff --git a/scripts/upgrade b/scripts/upgrade index 4c819f2..96db4c4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -105,7 +105,7 @@ ynh_mysql_connect_as --user=$db_name --password=$db_pwd --database=$db_name <<< # Login with admin account # ... 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 status=$(ynh_local_curl "/ws.php?format=json" "method=pwg.session.getStatus") pwg_token=$(jq --raw-output .result.pwg_token <<< $status)