Skip to content

Commit

Permalink
don't need sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
gizmoguy committed Apr 29, 2021
1 parent 523103c commit 02f8163
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions images/raspbian/install-faucet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ ID="$(grep -Po '(?<=^ID=).*' ${ROOTFS_DIR}/etc/os-release | awk '{print tolower(
CODE="$(grep -Po -m 1 '(?<=\()[^\)]+' ${ROOTFS_DIR}/etc/os-release | awk '{print tolower($0)}')"
on_chroot << EOF
apt-get install -y curl apt-transport-https lsb-release tcpdump
echo "deb https://packagecloud.io/faucetsdn/faucet/${ID}/ ${CODE} main" | sudo tee /etc/apt/sources.list.d/faucet.list
curl -L https://packagecloud.io/faucetsdn/faucet/gpgkey | sudo apt-key add -
echo "deb https://packagecloud.io/faucetsdn/faucet/${ID}/ ${CODE} main" | tee /etc/apt/sources.list.d/faucet.list
curl -L https://packagecloud.io/faucetsdn/faucet/gpgkey | apt-key add -
apt-get update
apt-get install -y --fix-missing faucet-all-in-one
EOF

0 comments on commit 02f8163

Please sign in to comment.