mirror of
https://github.com/YunoHost-Apps/moodle_ynh.git
synced 2024-09-03 19:46:23 +02:00
fix
This commit is contained in:
parent
07ef623719
commit
639cac82f8
2 changed files with 24 additions and 1148 deletions
1156
conf/config-dist.php
1156
conf/config-dist.php
File diff suppressed because it is too large
Load diff
|
@ -99,12 +99,16 @@ ynh_script_progression --message="Updating a configuration file..." --weight=1
|
|||
|
||||
domain=${new_domain%/}
|
||||
path_url=${new_path%/}
|
||||
#ynh_replace_string --match_string="\$CFG->wwwroot = .*" --replace_string="\$CFG->wwwroot = 'https://' . '$new_domain' . '${new_path%/}';" --target_file="$final_path/config.php"
|
||||
php${phpversion} "$final_path/admin/cli/install.php" --wwwroot="https://${domain}${path_url%/}" --non-interactive --agree-license
|
||||
# ynh_replace_string --match_string="\$CFG->wwwroot = .*" --replace_string="\$CFG->wwwroot = 'https://' . '$new_domain' . '${new_path%/}';" --target_file="$final_path/config.php"
|
||||
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app:www-data "$final_path"
|
||||
# chmod 750 "$final_path"
|
||||
# chmod -R o-rwx "$final_path"
|
||||
# chown -R $app:www-data "$final_path"
|
||||
|
||||
ynh_add_config --template="../conf/config-dist.php" --destination="$final_path/config.php"
|
||||
|
||||
chmod 400 "$final_path/config.php"
|
||||
chown $app:$app "$final_path/config.php"
|
||||
|
||||
#=================================================
|
||||
# RELOAD NGINX
|
||||
|
|
Loading…
Reference in a new issue