Comment purpose of the function
This commit is contained in:
parent
d89625df6f
commit
c626de49d7
|
@ -19,8 +19,8 @@ BACKUP_SUDOERS_FILE="/etc/sudoers.d/backuppc_noexec"
|
|||
|
||||
# Functions [[[
|
||||
|
||||
## Check if a backup user is present on the system from a list of users
|
||||
is_backup_user() ## [[[
|
||||
## Check if a backup user is present on the system from a list of users [[[
|
||||
is_backup_user()
|
||||
{
|
||||
userlist_to_check="${1}"
|
||||
|
||||
|
@ -36,7 +36,8 @@ is_backup_user() ## [[[
|
|||
exit "${ERROR}"
|
||||
}
|
||||
## ]]]
|
||||
is_backup_sudoers_line() ## [[[
|
||||
## Check if backup permissions are already set in sudoers.d [[[
|
||||
is_backup_sudoers_line()
|
||||
{
|
||||
line_to_check="${1}"
|
||||
|
||||
|
@ -50,7 +51,8 @@ is_backup_sudoers_line() ## [[[
|
|||
fi
|
||||
}
|
||||
## ]]]
|
||||
add_backup_sudoers_conf() ## [[[
|
||||
## Add some configuration to a specific file under sudoers.d/ [[[
|
||||
add_backup_sudoers_conf()
|
||||
{
|
||||
sudoers_conf="${1}"
|
||||
sudoers_file="${2}"
|
||||
|
|
Loading…
Reference in New Issue