mirror of
https://github.com/YunoHost-Apps/piwigo_ynh.git
synced 2024-09-03 20:06:03 +02:00
upgrade PHP
This commit is contained in:
parent
51fd24efed
commit
47403f0131
2 changed files with 9 additions and 6 deletions
|
@ -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]
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue