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

Update upgrade

This commit is contained in:
jarod5001 2024-02-01 19:46:42 +01:00 committed by GitHub
parent 1cba3919fb
commit 2d2b8788a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,6 +38,11 @@ then
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" --keep="configuration.php" ynh_setup_source --dest_dir="$install_dir" --keep="configuration.php"
# Run internal update of joomla fixing missing database tables
pushd "$install_dir"
php$phpversion cli/joomla.php core:update
popd
fi fi
chmod -R o-rwx "$install_dir" chmod -R o-rwx "$install_dir"
@ -67,12 +72,12 @@ ynh_use_logrotate --non-append
#================================================= #=================================================
# RESTORE A CONFIG FILE # RESTORE A CONFIG FILE
#================================================= #=================================================
ynh_script_progression --message="Restoring configuration file..." # ynh_script_progression --message="Restoring configuration file..."
ynh_add_config --template="configuration.php" --destination="$install_dir/configuration.php" # ynh_add_config --template="configuration.php" --destination="$install_dir/configuration.php"
chmod 400 "$install_dir/configuration.php" # chmod 400 "$install_dir/configuration.php"
chown $app:$app "$install_dir/configuration.php" # chown $app:$app "$install_dir/configuration.php"
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT