File tree Expand file tree Collapse file tree 2 files changed +1
-1
lines changed
Expand file tree Collapse file tree 2 files changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ SYSVENDOR=$(cat /sys/devices/virtual/dmi/id/sys_vendor)
4545# Network
4646IFACE=$( ip r | grep " default via" | awk ' {print $5}' )
4747IFACE2=$( ip -o link show | awk ' {print $2,$9}' | grep ' UP' | cut -d ' :' -f 1)
48- REPO=$( grep " ^deb " /etc/apt/sources.list | grep http | awk ' {print $2}' | head -1)
4948ADDRESS=$( hostname -I | cut -d ' ' -f 1)
5049WANIP4=$( curl -s -k -m 5 -4 https://api64.ipify.org)
5150INTERFACES=" /etc/netplan/nextcloud.yaml"
Original file line number Diff line number Diff line change 3737fi
3838
3939# Get the correct apt-mirror
40+ REPO=$( grep " URIs:" $( find /etc/apt/ -type f -name " *sources*" ) | grep http | awk ' {print $2}' | head -1)
4041if [ " $REPO " = ' http://archive.ubuntu.com/ubuntu' ]
4142then
4243 MIRROR_SWITCH=" ON"
You can’t perform that action at this time.
0 commit comments