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:
parent
f0097419b2
commit
cbd6557b14
2 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue