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:
parent
0b7d5f4a5b
commit
31ec38eaf5
3 changed files with 6 additions and 5 deletions
|
@ -45,7 +45,6 @@ ram.runtime = "50M"
|
||||||
url = "https://files.phpmyadmin.net/phpMyAdmin/5.1.3/phpMyAdmin-5.1.3-all-languages.tar.gz"
|
url = "https://files.phpmyadmin.net/phpMyAdmin/5.1.3/phpMyAdmin-5.1.3-all-languages.tar.gz"
|
||||||
sha256 = "7a85454d82d88cc1a6beb09114a67fa40230c4eff2ae1778b434fa74e80dc6d7"
|
sha256 = "7a85454d82d88cc1a6beb09114a67fa40230c4eff2ae1778b434fa74e80dc6d7"
|
||||||
|
|
||||||
|
|
||||||
[resources.system_user]
|
[resources.system_user]
|
||||||
|
|
||||||
[resources.install_dir]
|
[resources.install_dir]
|
||||||
|
|
|
@ -54,7 +54,7 @@ chown $app: $install_dir/tmp
|
||||||
ynh_script_progression --message="Reconfiguring PHP-FPM.." --weight=6
|
ynh_script_progression --message="Reconfiguring PHP-FPM.." --weight=6
|
||||||
|
|
||||||
# Restore the file first, so it can have a backup if different
|
# 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
|
# Recreate a dedicated php-fpm config
|
||||||
ynh_add_fpm_config
|
ynh_add_fpm_config
|
||||||
|
|
|
@ -21,9 +21,11 @@ upgrade_type=$(ynh_check_app_version_changed)
|
||||||
ynh_script_progression --message="Ensuring downward compatibility..."
|
ynh_script_progression --message="Ensuring downward compatibility..."
|
||||||
|
|
||||||
# In older version, the admin setting was admin_user
|
# In older version, the admin setting was admin_user
|
||||||
if [ -z "$admin" ]; then
|
if [ -n "$admin" ]; then
|
||||||
admin=$(ynh_app_setting_get --app=$app --key=admin_user)
|
ynh_app_setting_delete --app=$app --key=admin
|
||||||
ynh_app_setting_set --app=$app --key=admin --value=$admin
|
fi
|
||||||
|
|
||||||
|
if [ -n "$admin_user" ]; then
|
||||||
ynh_app_setting_delete --app=$app --key=admin_user
|
ynh_app_setting_delete --app=$app --key=admin_user
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue