1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/moodle_ynh.git synced 2024-09-03 19:46:23 +02:00
* Update upgrade

* Auto-update READMEs

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>
This commit is contained in:
eric_G 2024-06-04 22:54:10 +02:00 committed by GitHub
parent fda125a573
commit 597427e37e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 11 additions and 36 deletions

View file

@ -1,7 +1,7 @@
# All available README files by language
- [Read the README in English](README.md)
- [Lee el README en español](README_es.md)
- [Lea el README en español](README_es.md)
- [Irakurri README euskaraz](README_eu.md)
- [Lire le README en français](README_fr.md)
- [Le o README en galego](README_gl.md)

View file

@ -19,7 +19,7 @@ It shall NOT be edited by hand.
Moodle is a learning platform designed to provide educators, administrators and learners with a single robust, secure and integrated system to create personalised learning environments. Moodle is widely used around the world by universities, schools, companies and all manner of organisations and individuals.
**Shipped version:** 4.4.0~ynh1
**Shipped version:** 4.4.0~ynh2
**Demo:** <https://sandbox.moodledemo.net/>

View file

@ -19,7 +19,7 @@ No se debe editar a mano.
Moodle is a learning platform designed to provide educators, administrators and learners with a single robust, secure and integrated system to create personalised learning environments. Moodle is widely used around the world by universities, schools, companies and all manner of organisations and individuals.
**Versión actual:** 4.4.0~ynh1
**Versión actual:** 4.4.0~ynh2
**Demo:** <https://sandbox.moodledemo.net/>

View file

@ -19,7 +19,7 @@ EZ editatu eskuz.
Moodle is a learning platform designed to provide educators, administrators and learners with a single robust, secure and integrated system to create personalised learning environments. Moodle is widely used around the world by universities, schools, companies and all manner of organisations and individuals.
**Paketatutako bertsioa:** 4.4.0~ynh1
**Paketatutako bertsioa:** 4.4.0~ynh2
**Demoa:** <https://sandbox.moodledemo.net/>

View file

@ -19,7 +19,7 @@ Il NE doit PAS être modifié à la main.
Moodle est une plateforme d'apprentissage conçue pour fournir aux éducateurs, administrateurs et apprenants un système unique robuste, sécurisé et intégré pour créer des environnements d'apprentissage personnalisés. Moodle est largement utilisé dans le monde entier par les universités, les écoles, les entreprises et toutes sortes d'organisations et d'individus.
**Version incluse:** 4.4.0~ynh1
**Version incluse:** 4.4.0~ynh2
**Démo:** <https://sandbox.moodledemo.net/>

View file

@ -19,7 +19,7 @@ NON debe editarse manualmente.
Moodle is a learning platform designed to provide educators, administrators and learners with a single robust, secure and integrated system to create personalised learning environments. Moodle is widely used around the world by universities, schools, companies and all manner of organisations and individuals.
**Versión proporcionada:** 4.4.0~ynh1
**Versión proporcionada:** 4.4.0~ynh2
**Demo:** <https://sandbox.moodledemo.net/>

View file

@ -19,7 +19,7 @@
Moodle is a learning platform designed to provide educators, administrators and learners with a single robust, secure and integrated system to create personalised learning environments. Moodle is widely used around the world by universities, schools, companies and all manner of organisations and individuals.
**分发版本:** 4.4.0~ynh1
**分发版本:** 4.4.0~ynh2
**演示:** <https://sandbox.moodledemo.net/>

View file

@ -5,7 +5,7 @@ name = "Moodle"
description.en = "Online learning platform"
description.fr = "Plateforme d'apprentissage en ligne"
version = "4.4.0~ynh1"
version = "4.4.0~ynh2"
maintainers = []

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
#=================================================
@ -54,29 +48,10 @@ fi
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
ynh_script_progression --message="Upgrading source files..." --weight=6
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=6
# Create a temporary directory
tmpdir="$(mktemp -d)"
# Backup the config file in the temp dir
cp -a "$install_dir/config.php" "$tmpdir/config.php"
# Remove the app directory securely
ynh_secure_remove --file="$install_dir"
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir"
# Copy the admin saved settings from tmp directory to final path
cp -a "$tmpdir/config.php" "$install_dir/config.php"
# Remove the tmp directory securely
ynh_secure_remove --file="$tmpdir"
fi
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="config.php"
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"