mirror of
https://github.com/YunoHost-Apps/dotclear2_ynh.git
synced 2024-09-03 18:26:29 +02:00
Fix rights on $final_path/inc/config.php
require(/var/www/dotclear2/inc/config.php): failed to open stream
This commit is contained in:
parent
c3558aa0bd
commit
6c1d892f00
3 changed files with 9 additions and 0 deletions
|
@ -126,6 +126,9 @@ ynh_replace_string --match_string="'DC_ADMIN_URL', 'https://$old_domain$old_admi
|
||||||
|
|
||||||
ynh_store_file_checksum --file="$php_config"
|
ynh_store_file_checksum --file="$php_config"
|
||||||
|
|
||||||
|
chmod 400 "$php_config"
|
||||||
|
chown $app:$app "$php_config"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALISATION
|
# GENERIC FINALISATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -140,6 +140,9 @@ EOF
|
||||||
|
|
||||||
ynh_store_file_checksum --file=$php_config
|
ynh_store_file_checksum --file=$php_config
|
||||||
|
|
||||||
|
chmod 400 "$php_config"
|
||||||
|
chown $app:$app "$php_config"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP APPLICATION WITH CURL
|
# SETUP APPLICATION WITH CURL
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -168,6 +168,9 @@ EOF
|
||||||
# Recalculate and store the checksum of the file for the next upgrade.
|
# Recalculate and store the checksum of the file for the next upgrade.
|
||||||
ynh_store_file_checksum --file=$php_config
|
ynh_store_file_checksum --file=$php_config
|
||||||
|
|
||||||
|
chmod 400 "$php_config"
|
||||||
|
chown $app:$app "$php_config"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPDATING DATABASE
|
# UPDATING DATABASE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue