mirror of
https://github.com/YunoHost-Apps/paheko_ynh.git
synced 2024-09-03 19:56:22 +02:00
try fix install
This commit is contained in:
parent
1b4f793e41
commit
e7b2138600
2 changed files with 2 additions and 5 deletions
|
@ -51,11 +51,6 @@ ynh_add_config --template="config.local.php" --destination="$install_dir/config.
|
||||||
chmod 650 "$install_dir/config.local.php"
|
chmod 650 "$install_dir/config.local.php"
|
||||||
chown $app:$app "$install_dir/config.local.php"
|
chown $app:$app "$install_dir/config.local.php"
|
||||||
|
|
||||||
ynh_add_config --template="config.local.user.php" --destination="$data_dir/data/config.local.user.php"
|
|
||||||
|
|
||||||
chmod 650 "$data_dir/data/config.local.user.php"
|
|
||||||
chown $app:$app "$data_dir/data/config.local.user.php"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -84,6 +84,8 @@ if [ ! -f "$data_dir/data/config.local.user.php" ]; then
|
||||||
* qui ne sera pas écraser lors des mises à jour.
|
* qui ne sera pas écraser lors des mises à jour.
|
||||||
*/
|
*/
|
||||||
require '$data_dir/data/config.local.user.php';" >> $install_dir/config.local.php
|
require '$data_dir/data/config.local.user.php';" >> $install_dir/config.local.php
|
||||||
|
else
|
||||||
|
ynh_replace_string --match_string="require '$data_dir/data/config.local.user.php';" --replace_string="//require '$data_dir/data/config.local.user.php';" --target_file="$install_dir/config.local.php"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue