1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/adminer_ynh.git synced 2024-09-03 18:06:06 +02:00
This commit is contained in:
Éric Gaspar 2024-08-29 10:07:41 +02:00
parent 5030b9e2c1
commit fde3e53fd9
5 changed files with 1 additions and 13 deletions

View file

@ -16,7 +16,7 @@ demo = "https://demo.adminer.org/adminer.php?username="
code = "https://github.com/adminerevo/adminerevo" code = "https://github.com/adminerevo/adminerevo"
[integration] [integration]
yunohost = ">= 11.2.18" yunohost = ">= 11.2.27"
helpers_version = "2.1" helpers_version = "2.1"
architectures = "all" architectures = "all"
multi_instance = true multi_instance = true

View file

@ -13,19 +13,15 @@ ynh_script_progression "Setting up source files..."
#================================================= #=================================================
ynh_script_progression "Setting up source files..." ynh_script_progression "Setting up source files..."
# Download, check integrity, uncompress and patch the source from manifest.toml
ynh_setup_source --dest_dir="$install_dir" ynh_setup_source --dest_dir="$install_dir"
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R "$app:www-data" "$install_dir"
#================================================= #=================================================
# SYSTEM CONFIGURATION # SYSTEM CONFIGURATION
#================================================= #=================================================
ynh_script_progression "Adding system configurations related to $app..." ynh_script_progression "Adding system configurations related to $app..."
# Create a dedicated php-fpm config
ynh_config_add_phpfpm ynh_config_add_phpfpm
# Create a dedicated nginx config
ynh_config_add_nginx ynh_config_add_nginx
#================================================= #=================================================

View file

@ -8,10 +8,8 @@ source /usr/share/yunohost/helpers
#================================================= #=================================================
ynh_script_progression "Removing system configurations related to $app..." ynh_script_progression "Removing system configurations related to $app..."
# Remove the dedicated nginx config
ynh_config_remove_nginx ynh_config_remove_nginx
# Remove the dedicated php-fpm config
ynh_config_remove_phpfpm ynh_config_remove_phpfpm
#================================================= #=================================================

View file

@ -11,8 +11,6 @@ ynh_script_progression "Restoring $app main directory..."
ynh_restore "$install_dir" ynh_restore "$install_dir"
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R o-rwx "$install_dir"
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R $app:www-data "$install_dir"
#================================================= #=================================================
# RESTORE SYSTEM CONFIGURATIONS # RESTORE SYSTEM CONFIGURATIONS
#================================================= #=================================================

View file

@ -8,19 +8,15 @@ source /usr/share/yunohost/helpers
#================================================= #=================================================
ynh_script_progression "Upgrading source files..." ynh_script_progression "Upgrading source files..."
# Download, check integrity, uncompress and patch the source from manifest.toml
ynh_setup_source --dest_dir="$install_dir" --full_replace ynh_setup_source --dest_dir="$install_dir" --full_replace
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R "$app:www-data" "$install_dir"
#================================================= #=================================================
# PHP-FPM CONFIGURATION # PHP-FPM CONFIGURATION
#================================================= #=================================================
ynh_script_progression "Upgrading PHP-FPM configuration..." ynh_script_progression "Upgrading PHP-FPM configuration..."
# Create a dedicated PHP-FPM config
ynh_config_add_phpfpm ynh_config_add_phpfpm
# Create a dedicated NGINX config
ynh_config_add_nginx ynh_config_add_nginx
#================================================= #=================================================