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

Simplify handling of local-production.json

This commit is contained in:
Alexandre Aubin 2023-12-27 17:26:40 +01:00
parent c0e1dc2f81
commit 5fbb7d26a4
3 changed files with 2 additions and 4 deletions

View file

@ -1,2 +0,0 @@
{
}

View file

@ -97,7 +97,8 @@ ynh_add_config --template="production.yaml" --destination="$install_dir/config/p
chmod 400 "$install_dir/config/production.yaml"
chown $app:$app "$install_dir/config/production.yaml"
ynh_add_config --template="local-production.json" --destination="$install_dir/config/local-production.json"
# Initialize local setting conf file
echo '{}' > "$install_dir/config/local-production.json"
chmod 600 "$install_dir/config/local-production.json"
chown $app:$app "$install_dir/config/local-production.json"

View file

@ -130,7 +130,6 @@ ynh_add_config --template="../conf/production.yaml" --destination="$install_dir/
chmod 400 "$install_dir/config/production.yaml"
chown $app:$app "$install_dir/config/production.yaml"
ynh_backup_if_checksum_is_different --file="$install_dir/config/local-production.json"
chmod 600 "$install_dir/config/local-production.json"
chown $app:$app "$install_dir/config/local-production.json"