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

ynh_replace_string is nice, but do not forget to specify the file

This commit is contained in:
tituspijean 2021-04-02 03:59:03 +02:00
parent 18bef5d8d9
commit 87549cb90a
2 changed files with 2 additions and 2 deletions

View file

@ -130,7 +130,7 @@ ynh_replace_string --match_string="<IsStartupWizardCompleted>false</IsStartupWiz
# Lower logging verbosity
cp "$config_path/logging.default.json" "$config_path/logging.json"
ynh_replace_string --match_string="\"Default\": \"Information\"" --replace_string="\"Default\": \"Error\""
ynh_replace_string --match_string="\"Default\": \"Information\"" --replace_string="\"Default\": \"Error\"" --target_file="$config_path/logging.json"
ynh_store_file_checksum --file="$config_path/network.xml"
ynh_store_file_checksum --file="$config_path/system.xml"

View file

@ -51,7 +51,7 @@ fi
# If logging config does not exist, lower logging verbosity
if ! [ -e "$config_path/logging.json" ]; then
cp "$config_path/logging.default.json" "$config_path/logging.json"
ynh_replace_string --match_string="\"Default\": \"Information\"" --replace_string="\"Default\": \"Error\""
ynh_replace_string --match_string="\"Default\": \"Information\"" --replace_string="\"Default\": \"Error\"" --target_file="$config_path/logging.json"
fi
# Cleaning legacy permissions