1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/joomla_ynh.git synced 2024-09-03 19:26:34 +02:00

Merge pull request #47 from YunoHost-Apps/ci-auto-update-5.1.2

Upgrade to v5.1.2
This commit is contained in:
eric_G 2024-08-20 22:58:22 +02:00 committed by GitHub
commit bf9bb5c203
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 32 deletions

View file

@ -22,21 +22,13 @@ ynh_print_info --message="Declaring files to be backed up..."
ynh_backup --src_path="$install_dir"
#=================================================
# BACKUP THE NGINX CONFIGURATION
# SYSTEM CONFIGURATION
#=================================================
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"
#=================================================
# BACKUP LOGROTATE
#=================================================
ynh_backup --src_path="/etc/logrotate.d/$app"
#=================================================

View file

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

View file

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