1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/phpmyadmin_ynh.git synced 2024-09-03 19:56:46 +02:00

Fix scripts.

This commit is contained in:
orhtej2 2023-11-02 17:43:48 +01:00
parent 0b7d5f4a5b
commit 31ec38eaf5
3 changed files with 6 additions and 5 deletions

View file

@ -45,7 +45,6 @@ ram.runtime = "50M"
url = "https://files.phpmyadmin.net/phpMyAdmin/5.1.3/phpMyAdmin-5.1.3-all-languages.tar.gz"
sha256 = "7a85454d82d88cc1a6beb09114a67fa40230c4eff2ae1778b434fa74e80dc6d7"
[resources.system_user]
[resources.install_dir]

View file

@ -54,7 +54,7 @@ chown $app: $install_dir/tmp
ynh_script_progression --message="Reconfiguring PHP-FPM.." --weight=6
# Restore the file first, so it can have a backup if different
ynh_restore_file --origin_path="/etc/php/$YNH_PHP_VERSION/fpm/pool.d/$app.conf"
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
# Recreate a dedicated php-fpm config
ynh_add_fpm_config

View file

@ -21,9 +21,11 @@ upgrade_type=$(ynh_check_app_version_changed)
ynh_script_progression --message="Ensuring downward compatibility..."
# In older version, the admin setting was admin_user
if [ -z "$admin" ]; then
admin=$(ynh_app_setting_get --app=$app --key=admin_user)
ynh_app_setting_set --app=$app --key=admin --value=$admin
if [ -n "$admin" ]; then
ynh_app_setting_delete --app=$app --key=admin
fi
if [ -n "$admin_user" ]; then
ynh_app_setting_delete --app=$app --key=admin_user
fi