1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/paheko_ynh.git synced 2024-09-03 19:56:22 +02:00
This commit is contained in:
Éric Gaspar 2023-04-19 20:41:02 +02:00
parent 4d0c0ffd3a
commit 8cc62c8e1f
2 changed files with 6 additions and 6 deletions

View file

@ -48,9 +48,9 @@ secret_key=$(ynh_string_random --length=50)
ynh_app_setting_set --app=$app --key=secret_key --value=$secret_key
# Install configuration files
ynh_add_config --template="../conf/config.local.php" --destination="$install_dir/config.local.php"
ynh_add_config --template="../conf/config.local.yunohost.php" --destination="$install_dir/config.local.yunohost.php"
ynh_add_config --template="../conf/config.local.user.php" --destination="$install_dir/config.local.user.php"
ynh_add_config --template="config.local.php" --destination="$install_dir/config.local.php"
ynh_add_config --template="config.local.yunohost.php" --destination="$install_dir/config.local.yunohost.php"
ynh_add_config --template="config.local.user.php" --destination="$install_dir/config.local.user.php"
# Permissions on files and directories
chmod -R o-rwx "$install_dir"

View file

@ -68,11 +68,11 @@ ynh_add_nginx_config
ynh_script_progression --message="Updating a configuration file..." --weight=5
if ynh_compare_current_package_version --comparison lt --version 1.1.15~ynh1; then
ynh_add_config --template="../cong/config.local.user.php" --destination="$install_dir/config.local.user.php"
ynh_add_config --template="config.local.user.php" --destination="$install_dir/config.local.user.php"
fi
ynh_add_config --template="../cong/config.local.php" --destination="$install_dir/config.local.php"
ynh_add_config --template="../cong/config.local.yunohost.php" --destination="$install_dir/config.local.yunohost.php"
ynh_add_config --template="config.local.php" --destination="$install_dir/config.local.php"
ynh_add_config --template="config.local.yunohost.php" --destination="$install_dir/config.local.yunohost.php"
# NOTE: Don't overwrite config.local.user.php
# Permissions on files and directories