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:
parent
433b3d2bfd
commit
1b9517fce3
2 changed files with 7 additions and 7 deletions
|
@ -46,15 +46,16 @@ chmod 644 "/etc/cron.d/$app"
|
|||
ynh_script_progression --message="Adding a configuration file..." --weight=5
|
||||
|
||||
# Install configuration files
|
||||
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"
|
||||
|
||||
ynh_add_config --template="config.local.php" --destination="$install_dir/config.local.php"
|
||||
|
||||
chmod 650 "$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
|
||||
|
|
|
@ -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"
|
||||
chmod 650 "$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
|
||||
* 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
|
||||
|
||||
#=================================================
|
||||
|
@ -62,7 +62,6 @@ then
|
|||
ynh_setup_source --dest_dir="$install_dir" --keep="config.local.php data/plugins"
|
||||
fi
|
||||
|
||||
|
||||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue