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

keep also new folder local_adresses con the home directory

This commit is contained in:
rodinux 2024-04-20 17:05:36 +02:00
parent f0097419b2
commit cbd6557b14
2 changed files with 9 additions and 1 deletions

View file

@ -950,7 +950,7 @@ const USE_CRON = true;
*
* @var null|string
*/
//const LOCAL_ADDRESSES_ROOT = '__INSTALL_DIR__/local_addresses/';
const LOCAL_ADDRESSES_ROOT = '__DATA_DIR__/data/local_addresses/';
/**
* Chemin vers le fichier pour des configurations personnelles qui ne sera pas écraser

View file

@ -133,6 +133,14 @@ if [ ! -f "$data_dir/data/config.local.user.php" ]; then
chown $app:$app "$data_dir/data/config.local.user.php"
fi
if [ ! -d "$data_dir/data/local_addresses" ]; then
ynh_script_progression --message="Adding a configuration directory..." --weight=5
mkdir "$data_dir/data//local_addresses"
chmod 770 "$data_dir/data/local_addresses"
chmod -R 644 "$data_dir/data/local_addresses/*"
chown $app:www-data "$data_dir/data/config.local.user.php"
fi
if [ -f "$install_dir/data/association.sqlite" ]; then
ynh_script_progression --message="Moving db files..." --weight=5