Update reset_default_config

This commit is contained in:
ericgaspar 2021-07-17 20:44:39 +02:00
parent 2960f628a4
commit 9490b99980
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -103,10 +103,7 @@ fi
if [ "$file" = "02periodic" ]
then
# Get the default file and overwrite the current config
cp /etc/yunohost/apps/$app/conf/02periodic "$config_file"
# Recreate the default config
ynh_replace_string --match_string="__UNATTENDED_VERBOSITY__" --replace_string="$unattended_verbosity" --target_file="/etc/apt/apt.conf.d/02periodic"
ynh_add_config --template="../conf/02periodic" --destination="/etc/apt/apt.conf.d/02periodic"
fi
# Calculate and store the config file checksum into the app settings