mirror of
https://github.com/YunoHost-Apps/lutim_ynh.git
synced 2024-09-03 19:36:24 +02:00
Update upgrade
This commit is contained in:
parent
4dd19ae0ca
commit
61864e0ac9
1 changed files with 2 additions and 2 deletions
|
@ -112,14 +112,14 @@ then
|
|||
chown $app:$app "$install_dir/lutim.conf"
|
||||
|
||||
# Optional parameters from config-panel feature
|
||||
if [ -n "$antiflood" ]; then
|
||||
if [ -n "${antiflood:-}" ]; then
|
||||
ynh_replace_string --match_string=".*anti_flood_delay *=>.*" --replace_string=" anti_flood_delay => $antiflood," --target_file="$install_dir/lutim.conf"
|
||||
# Disable anti_flood_delay if the delay is 0
|
||||
if [ $antiflood = 0 ]; then
|
||||
ynh_replace_string --match_string="\(anti_flood_delay *=>.*\)" --replace_string="#\1" --target_file="$install_dir/lutim.conf"
|
||||
fi
|
||||
fi
|
||||
if [ -n "$delay" ]; then
|
||||
if [ -n "${delay:-}" ]; then
|
||||
ynh_replace_string --match_string=".*default_delay *=>.*" --replace_string=" default_delay => $delay," --target_file="$install_dir/lutim.conf"
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue