1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/moodle_ynh.git synced 2024-09-03 19:46:23 +02:00
This commit is contained in:
Éric Gaspar 2023-11-19 18:02:57 +01:00
parent e92f29242a
commit ded97a3330
2 changed files with 5 additions and 2 deletions

View file

@ -20,8 +20,11 @@ code = "https://github.com/moodle/moodle"
yunohost = ">= 11.2"
architectures = "all"
multi_instance = true
ldap = true
sso = true
disk = "50M"
ram.build = "2000M"
ram.runtime = "50M"

View file

@ -30,9 +30,9 @@ dir="__DIR__"
ynh_backup_if_checksum_is_different --file="$install_dir/config.php"
if [ "$new_path" == "/" ]; then
ynh_add_config --template="../conf/config-domain.php" --destination="$install_dir/config.php"
ynh_add_config --template="config-domain.php" --destination="$install_dir/config.php"
else
ynh_add_config --template="../conf/config-path.php" --destination="$install_dir/config.php"
ynh_add_config --template="config-path.php" --destination="$install_dir/config.php"
fi
ynh_store_file_checksum --file="$install_dir/config.php"