Skip to content

Commit

Permalink
Get OS codename without replying on lsb_release
Browse files Browse the repository at this point in the history
  • Loading branch information
jiribrejcha authored Aug 24, 2023
1 parent af29012 commit 911af82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wlanpi0/00-install-packages/04-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on_chroot <<CHEOF
if [ ! -f /etc/apt/sources.list.d/influxdb.list ]; then
echo "Adding InfluxData repository"
curl https://repos.influxdata.com/influxdata-archive.key | gpg --dearmor | sudo tee /usr/share/keyrings/influxdb-archive-keyring.gpg >/dev/null
echo "deb [signed-by=/usr/share/keyrings/influxdb-archive-keyring.gpg] https://repos.influxdata.com/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
echo "deb [signed-by=/usr/share/keyrings/influxdb-archive-keyring.gpg] https://repos.influxdata.com/debian $(grep "VERSION_CODENAME=" /etc/os-release |awk -F= {'print $2'} | sed s/\"//g) stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
fi
echo "--tshoot"
Expand Down

0 comments on commit 911af82

Please sign in to comment.