1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/joomla_ynh.git synced 2024-09-03 19:26:34 +02:00
This commit is contained in:
eric_G 2024-08-22 08:54:57 +02:00 committed by GitHub
commit ed91a7eec2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 14 additions and 33 deletions

View file

@ -22,21 +22,13 @@ ynh_print_info --message="Declaring files to be backed up..."
ynh_backup --src_path="$install_dir" ynh_backup --src_path="$install_dir"
#================================================= #=================================================
# BACKUP THE NGINX CONFIGURATION # SYSTEM CONFIGURATION
#================================================= #=================================================
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
# BACKUP THE PHP-FPM CONFIGURATION
#=================================================
ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
#=================================================
# BACKUP LOGROTATE
#=================================================
ynh_backup --src_path="/etc/logrotate.d/$app" ynh_backup --src_path="/etc/logrotate.d/$app"
#================================================= #=================================================

View file

@ -25,9 +25,6 @@ ynh_remove_nginx_config
# Remove the dedicated PHP-FPM config # Remove the dedicated PHP-FPM config
ynh_remove_fpm_config ynh_remove_fpm_config
# Remove the log files
ynh_secure_remove --file="/var/log/$app"
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT
#================================================= #=================================================

View file

@ -9,12 +9,6 @@
source _common.sh source _common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
#=================================================
# CHECK VERSION
#=================================================
upgrade_type=$(ynh_check_app_version_changed)
#================================================= #=================================================
# STANDARD UPGRADE STEPS # STANDARD UPGRADE STEPS
#================================================= #=================================================
@ -31,22 +25,19 @@ fi
#================================================= #=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE # DOWNLOAD, CHECK AND UNPACK SOURCE
#================================================= #=================================================
ynh_script_progression --message="Upgrading source files..."
if [ "$upgrade_type" == "UPGRADE_APP" ] # Download, check integrity, uncompress and patch the source from app.src
then ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="administrator modules components images language plugins templates configuration.php layouts media"
ynh_script_progression --message="Upgrading source files..." # Run internal update of joomla fixing missing database tables
# Download, check integrity, uncompress and patch the source from app.src pushd "$install_dir"
ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="configuration.php" php$phpversion cli/joomla.php core:update
# Run internal update of joomla fixing missing database tables popd
pushd "$install_dir" # Remove installation directory
php$phpversion cli/joomla.php core:update ynh_secure_remove --file="$install_dir/installation"
popd # Fix #34
# Remove installation directory ynh_secure_remove --file="$install_dir/administrator/cache/autoload_psr4.php"
ynh_secure_remove --file="$install_dir/installation"
# Fix #34
ynh_secure_remove --file="$install_dir/administrator/cache/autoload_psr4.php"
fi
chmod -R o-rwx "$install_dir" chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir" chown -R $app:www-data "$install_dir"

View file

@ -5,4 +5,5 @@ test_format = 1.0
# ------------------------------- # -------------------------------
# Commits to test upgrade from # Commits to test upgrade from
# ------------------------------- # -------------------------------
test_upgrade_from.08222d1d.name = "Upgrade from 4.2.6" # very old version
# test_upgrade_from.08222d1d.name = "Upgrade from 4.2.6"