Comment purpose of the function

This commit is contained in:
Jeremy Gardais 2019-05-28 14:19:35 +02:00
parent d89625df6f
commit c626de49d7
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 6 additions and 4 deletions

View File

@ -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}"