Skip to content

Commit 8725b39

Browse files
tinuvathelamer
authored andcommitted
add sudo access to tcpping. closes #65
1 parent 1cff481 commit 8725b39

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,16 @@ RUN \
2525
sudo \
2626
tcptraceroute \
2727
ttf-dejavu && \
28-
echo "**** give abc sudo access to traceroute & tcptraceroute ****" && \
28+
echo "**** give abc sudo access to traceroute & tcptraceroute & tcpping ****" && \
2929
echo \
3030
"abc ALL=(ALL) NOPASSWD: /usr/bin/traceroute" >> \
3131
/etc/sudoers.d/traceroute && \
3232
echo \
3333
"abc ALL=(ALL) NOPASSWD: /usr/bin/tcptraceroute" >> \
3434
/etc/sudoers.d/tcptraceroute && \
35+
echo \
36+
"abc ALL=(ALL) NOPASSWD: /usr/bin/tcpping" >> \
37+
/etc/sudoers.d/tcpping && \
3538
echo "**** fix path to cropper.js ****" && \
3639
sed -i 's#src="/cropper/#/src="cropper/#' /etc/smokeping/basepage.html && \
3740
echo "**** install tcping script ****" && \

Dockerfile.aarch64

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,16 @@ RUN \
2525
sudo \
2626
tcptraceroute \
2727
ttf-dejavu && \
28-
echo "**** give abc sudo access to traceroute & tcptraceroute ****" && \
28+
echo "**** give abc sudo access to traceroute & tcptraceroute & tcpping ****" && \
2929
echo \
3030
"abc ALL=(ALL) NOPASSWD: /usr/bin/traceroute" >> \
3131
/etc/sudoers.d/traceroute && \
3232
echo \
3333
"abc ALL=(ALL) NOPASSWD: /usr/bin/tcptraceroute" >> \
3434
/etc/sudoers.d/tcptraceroute && \
35+
echo \
36+
"abc ALL=(ALL) NOPASSWD: /usr/bin/tcpping" >> \
37+
/etc/sudoers.d/tcpping && \
3538
echo "**** fix path to cropper.js ****" && \
3639
sed -i 's#src="/cropper/#/src="cropper/#' /etc/smokeping/basepage.html && \
3740
echo "**** install tcping script ****" && \

Dockerfile.armhf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,16 @@ RUN \
2525
sudo \
2626
tcptraceroute \
2727
ttf-dejavu && \
28-
echo "**** give abc sudo access to traceroute & tcptraceroute ****" && \
28+
echo "**** give abc sudo access to traceroute & tcptraceroute & tcpping ****" && \
2929
echo \
3030
"abc ALL=(ALL) NOPASSWD: /usr/bin/traceroute" >> \
3131
/etc/sudoers.d/traceroute && \
3232
echo \
3333
"abc ALL=(ALL) NOPASSWD: /usr/bin/tcptraceroute" >> \
3434
/etc/sudoers.d/tcptraceroute && \
35+
echo \
36+
"abc ALL=(ALL) NOPASSWD: /usr/bin/tcpping" >> \
37+
/etc/sudoers.d/tcpping && \
3538
echo "**** fix path to cropper.js ****" && \
3639
sed -i 's#src="/cropper/#/src="cropper/#' /etc/smokeping/basepage.html && \
3740
echo "**** install tcping script ****" && \

0 commit comments

Comments
 (0)