File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 29
29
install_docker (){
30
30
export DEBIAN_FRONTEND=" noninteractive"
31
31
32
- apt install \
32
+ > /dev/null 2>&1 apt install \
33
33
apt-transport-https ca-certificates \
34
- curl gnupg-agent software-properties-common -qqy > /dev/null || return $?
34
+ curl gnupg-agent software-properties-common -qqy || return $?
35
35
36
36
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | \
37
- sudo apt-key add - > /dev/null || return $?
37
+ sudo apt-key add - > /dev/null 2>&1 || return $?
38
38
39
- > /dev/null add-apt-repository \
39
+ > /dev/null 2>&1 add-apt-repository \
40
40
" deb [arch=amd64] https://download.docker.com/linux/ubuntu $( lsb_release -cs) stable" \
41
41
|| return $?
42
42
@@ -50,8 +50,8 @@ docker_post_install(){
50
50
51
51
if [ " $DOCKER_GROUP " = " yes" ]; then
52
52
usermod -aG docker $USER \
53
- && error " $USER was'nt added to the docker group." \
54
- || info " $USER was successfully added to the docker group."
53
+ || error " $USER wasn't added to the docker group. usermod failed ." \
54
+ && info " $USER was successfully added to the docker group."
55
55
fi
56
56
57
57
cat << EOF >> /etc/audit/rules.d/audit.rules
74
74
75
75
local ret=0
76
76
77
- systemctl enable docker
77
+ systemctl enable docker > /dev/null
78
78
ret=$(( $ret + $? ))
79
- systemctl enable auditd
79
+ systemctl enable auditd > /dev/null
80
80
return $(( $ret + $? ))
81
81
}
82
82
You can’t perform that action at this time.
0 commit comments