1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/paheko_ynh.git synced 2024-09-03 19:56:22 +02:00

try add file and line to read /data/config.local.user.php

This commit is contained in:
rodinux 2023-12-25 04:04:19 +01:00
parent f7eeae1efb
commit 70ca18683c

View file

@ -42,12 +42,12 @@ if [ ! -f "$data_dir/data/config.local.user.php" ]; then
ynh_add_config --template="config.local.user.php" --destination="$data_dir/data/config.local.user.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" chmod 650 "$data_dir/data/config.local.user.php"
chown $app:$app "$data_dir/data/config.local.user.php" chown $app:$app "$data_dir/data/config.local.user.php"
echo" echo "
/** /**
* Chemin vers le fichier pour des configurations personnelles * Chemin vers le fichier pour des configurations personnelles
* 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
fi fi
#================================================= #=================================================