diff --git a/manifest.toml b/manifest.toml index 6db6ad6..6337e4d 100644 --- a/manifest.toml +++ b/manifest.toml @@ -92,12 +92,12 @@ ram.runtime = "50M" packages = [ "mariadb-server", "imagemagick", - "php8.0-gd", - "php8.0-imagick", - "php8.0-xml", - "php8.0-mbstring", - "php8.0-mysqli", - "php8.0-ldap", + "php8.3-gd", + "php8.3-imagick", + "php8.3-xml", + "php8.3-mbstring", + "php8.3-mysqli", + "php8.3-ldap", ] [resources.database] diff --git a/scripts/upgrade b/scripts/upgrade index 6227e48..e47c871 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -83,11 +83,14 @@ ynh_mysql_connect_as --user="$db_name" --password="$db_pwd" --database="$db_name # ... 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=$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") + # Activate the Ldap_Login plugin ynh_local_curl "/ws.php?format=json" "method=pwg.plugins.performAction" "action=activate" "plugin=Ldap_Login" "pwg_token=$pwg_token" + # Log out ynh_local_curl "/ws.php?format=json" "method=pwg.session.logout"