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 config file on install

This commit is contained in:
rodinux 2024-01-03 11:16:26 +01:00
parent c968ab22d3
commit e995390f52

View file

@ -43,7 +43,7 @@ chmod 644 "/etc/cron.d/$app"
#=================================================
# ADD A CONFIGURATION
#=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=5
ynh_script_progression --message="Adding a configuration files..." --weight=5
# Install configuration files
ynh_add_config --template="config.local.php" --destination="$install_dir/config.local.php"
@ -51,6 +51,11 @@ ynh_add_config --template="config.local.php" --destination="$install_dir/config.
chmod 440 "$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 440 "$data_dir/data/config.local.user.php"
chown $app:$app "$data_dir/data/config.local.user.php"
#=================================================
# END OF SCRIPT
#=================================================