From c626de49d7f4a2b8cef2a5f13ae04ca8d145b5a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Tue, 28 May 2019 14:19:35 +0200 Subject: [PATCH] Comment purpose of the function --- client/fix_backuppc_linux_sudo.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/client/fix_backuppc_linux_sudo.sh b/client/fix_backuppc_linux_sudo.sh index cfc2447..167c450 100755 --- a/client/fix_backuppc_linux_sudo.sh +++ b/client/fix_backuppc_linux_sudo.sh @@ -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}"