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

Update install

This commit is contained in:
ericgaspar 2021-07-06 11:04:02 +02:00
parent 640a785214
commit f031803134

View file

@ -102,11 +102,8 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#================================================= #=================================================
ynh_script_progression --message="Adding a configuration file..." --time --weight=1 ynh_script_progression --message="Adding a configuration file..." --time --weight=1
ynh_add_config --template="../conf/config.dist.php" --destination="$final_path/some_config_file" ynh_add_config --template="../conf/config.dist.php" --destination="$final_path/config.php"
# FIXME: this should be handled by the core in the future
# You may need to use chmod 600 instead of 400,
# for example if the app is expected to be able to modify its own config
chmod 400 "$final_path/some_config_file" chmod 400 "$final_path/some_config_file"
chown $app:$app "$final_path/some_config_file" chown $app:$app "$final_path/some_config_file"