1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/moodle_ynh.git synced 2024-09-03 19:46:23 +02:00
* Upgrade (#68)

* Apply example_ynh

* Fix melange-de-versions

https://forum.yunohost.org/t/melange-de-versions-de-moodle-detectees/19985

* Update manifest.json

* Auto-update README

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* 4.0.2 (#71)

* 4.0.2

* Auto-update README

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* Auto-update README

* Bullseye (#73)

* Update manifest.json

* Auto-update README

* Update upgrade

* Fix

* Auto-update README

* Auto-update README

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* 4.0.3 (#74)

* 4.0.3

* Auto-update README

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* 4.0.4

* Auto-update README

* 4.1.0 (#77)

* 4.1.0

* Auto-update README

* fix PHP

* Update config_panel.toml

* Update config_panel.toml

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* Auto-update README

* 4.1.1

* Auto-update README

* Update extra_php-fpm.conf

* Update extra_php-fpm.conf

* Auto-update README

* Update manifest.json

* Update extra_php-fpm.conf

* Update _common.sh

* Version 2 (#80)

* v2

* Fix

* Auto-update README

* fix

* Fix

* Update tests.toml

* Update manifest.toml

* Update _common.sh

* Update upgrade

* Update upgrade

* Update manifest.toml

* fix

* upgrade: remove unused code

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>

* Update manifest.toml

* cleaning

* Auto-update README

* Update manifest.toml

* Auto-update README

* Update manifest.toml

* fix

* 4.2.0 (#85)

* Update manifest.toml

* Auto-update README

* Update manifest.toml

* Update manifest.toml

* Update extra_php-fpm.conf

* Update extra_php-fpm.conf

* Update install

* Update install

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* Upgrade to v4.2.1 (#88)

* Upgrade to v4.2.1

* Auto-update README

* Update manifest.toml

* Update manifest.toml

* Update manifest.toml

* Auto-update README

* cleaning

* Auto-update README

* cleaning

* Update manifest.toml

* Update manifest.toml

* Auto-update README

* Upgrade to v4.3.0 (#93)

* Auto-update README

* Upgrade to v4.3.0

* Auto-update README

* cleaning

* cleaning

* Auto-update README

* Upgrade to v4.3.1 (#94)

* Upgrade to v4.3.1

* Auto-update README

* cleaning

* Upgrade to v4.3.2 (#97)

* Upgrade to v4.3.3 (#99)

* Auto-update README

* Upgrade to v4.3.3

* Auto-update README

* Upgrade to v4.4.0 (#101)

* Upgrade to v4.4.0

* Auto-update READMEs

* remove the empty string inside 'maintainers'

* Auto-update READMEs

* Upgrade (#104)

* Update upgrade

* Auto-update READMEs

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

---------

Co-authored-by: yalh76 <yalh@yahoo.com>
Co-authored-by: yunohost-bot <yunohost@yunohost.org>
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
Co-authored-by: YunoHost Bot <yunohost-bot@users.noreply.github.com>
Co-authored-by: OniriCorpe <oniricorpe@yunohost.org>
This commit is contained in:
eric_G 2024-06-05 08:53:29 +02:00 committed by GitHub
parent 40103ac17f
commit 3abfa6b248
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 # All available README files by language
- [Read the README in English](README.md) - [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) - [Irakurri README euskaraz](README_eu.md)
- [Lire le README en français](README_fr.md) - [Lire le README en français](README_fr.md)
- [Le o README en galego](README_gl.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. 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/> **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. 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/> **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. 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/> **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. 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/> **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. 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/> **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. 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/> **演示:** <https://sandbox.moodledemo.net/>

View file

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

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
#================================================= #=================================================
@ -54,29 +48,10 @@ fi
#================================================= #=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE # DOWNLOAD, CHECK AND UNPACK SOURCE
#================================================= #=================================================
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=6 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 # Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="config.php"
# 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
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"