Add Docker pages #2
|
@ -7,11 +7,16 @@
|
||||||
DRY_RUN=false
|
DRY_RUN=false
|
||||||
LOCAL=/usr/local
|
LOCAL=/usr/local
|
||||||
SUDO=$(test ${EUID} -ne 0 && which sudo)
|
SUDO=$(test ${EUID} -ne 0 && which sudo)
|
||||||
|
L4T_VERSION=$(head -n 1 /etc/nv_tegra_release | grep -o 'R..')
|
||||||
|
|
||||||
$SUDO apt-get install -y cockpit
|
|
||||||
|
if [ "$L4T_VERSION" == "R35" ]; then
|
||||||
|
$SUDO apt install -t focal-backports cockpit -y
|
||||||
|
else
|
||||||
|
$SUDO apt install cockpit -y
|
||||||
|
fi
|
||||||
|
|
||||||
# Change the port to 443/80 and restart
|
# Change the port to 443/80 and restart
|
||||||
|
|
||||||
$SUDO sed -i 's/9090/443/g' /lib/systemd/system/cockpit.socket
|
$SUDO sed -i 's/9090/443/g' /lib/systemd/system/cockpit.socket
|
||||||
$SUDO sed -i '/ListenStream=80/d' /lib/systemd/system/cockpit.socket
|
$SUDO sed -i '/ListenStream=80/d' /lib/systemd/system/cockpit.socket
|
||||||
$SUDO sed -i '/ListenStream=443/a ListenStream=80' /lib/systemd/system/cockpit.socket
|
$SUDO sed -i '/ListenStream=443/a ListenStream=80' /lib/systemd/system/cockpit.socket
|
||||||
|
|
Loading…
Reference in New Issue