Skip to content

Commit

Permalink
change name to nextcloud for the yaml file (nextcloud#1776)
Browse files Browse the repository at this point in the history
  • Loading branch information
enoch85 authored Jan 18, 2021
1 parent 190601c commit 144bcf6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ REPO=$(grep "^deb " /etc/apt/sources.list | grep http | awk '{print $2}' | head
ADDRESS=$(hostname -I | cut -d ' ' -f 1)
# WANIP4=$(dig +short myip.opendns.com @resolver1.opendns.com) # as an alternative
WANIP4=$(curl -s -k -m 5 https://ipv4bot.whatismyipaddress.com)
INTERFACES="/etc/netplan/01-netcfg.yaml"
INTERFACES="/etc/netplan/nextcloud.yaml"
GATEWAY=$(ip route | grep default | awk '{print $3}')
# Internet DNS required when a check needs to be made to a server outside the home/SME
INTERNET_DNS="9.9.9.9"
Expand Down
5 changes: 3 additions & 2 deletions network/static_ip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ IPCONFIG

msg_box "These are your settings, please make sure they are correct:
$(cat /etc/netplan/01-netcfg.yaml)"
$(cat /etc/netplan/nextcloud.yaml)"
netplan try
set_systemd_resolved_dns "$IFACE"
else
Expand All @@ -215,7 +215,7 @@ IPCONFIGnonvmware

msg_box "These are your settings, please make sure they are correct:
$(cat /etc/netplan/01-netcfg.yaml)"
$(cat /etc/netplan/nextcloud.yaml)"
netplan try
set_systemd_resolved_dns "$IFACE2"
fi
Expand All @@ -224,6 +224,7 @@ $(cat /etc/netplan/01-netcfg.yaml)"
then
sleep 1
msg_box "Static IP successfully set!"
rm -f /etc/netplan/00-installer-config.yaml
break
fi

Expand Down

0 comments on commit 144bcf6

Please sign in to comment.