mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
helpers 2.1: remove legacy --nonappend/--non-append arg in logrotate helper
This commit is contained in:
parent
6b577bdd23
commit
b79ff15d32
1 changed files with 0 additions and 12 deletions
|
@ -14,18 +14,6 @@ FIRST_CALL_TO_LOGROTATE="true"
|
|||
# Requires YunoHost version 2.6.4 or higher.
|
||||
ynh_use_logrotate() {
|
||||
|
||||
# Stupid patch to ignore legacy --non-append and --nonappend
|
||||
# which was never properly understood and improperly used and kind of bullshit
|
||||
local all_args=( ${@} )
|
||||
for I in $(seq 0 $(($# - 1)))
|
||||
do
|
||||
if [[ "${all_args[$I]}" == "--non-append" ]] || [[ "${all_args[$I]}" == "--nonappend" ]]
|
||||
then
|
||||
unset all_args[$I]
|
||||
fi
|
||||
done
|
||||
set -- "${all_args[@]}"
|
||||
|
||||
# ============ Argument parsing =============
|
||||
local -A args_array=([l]=logfile= [u]=specific_user=)
|
||||
local logfile
|
||||
|
|
Loading…
Add table
Reference in a new issue