Skip to content

Commit

Permalink
nc-static-IP: Restricting gateway to one
Browse files Browse the repository at this point in the history
Signed-off-by: Brooks <603632+bmbeverst@users.noreply.github.com>
Signed-off-by: nachoparker <nacho@ownyourbits.com>
  • Loading branch information
bmbeverst authored and nachoparker committed Aug 30, 2020
1 parent 3cf269a commit 76ffaec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/ncp/NETWORKING/nc-static-IP.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

configure()
{
local GW="$( ip r | grep "default via" | awk '{ print $3 }' )"
local GW="$( ip r | grep "default via" | awk '{ print $3 }' | head -1 )"
local DNS="$( grep nameserver /etc/resolv.conf | head -1 | awk '{ print $2 }' )"
[[ "$DNS" == "" ]] && DNS="$GW"
local IFACE="$( ip r | grep "default via" | awk '{ print $5 }' | head -1 )"
Expand Down
12 changes: 9 additions & 3 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@

[v1.28.3](https://github.com/nextcloud/nextcloudpi/commit/cb25e3f) (2020-08-02) ncp-autoupdate-apps: dont fail cron if no updates
[v1.29.3](https://github.com/nextcloud/nextcloudpi/commit/e0370bb) (2020-08-26) nc-static-IP: Restricting gateway to one

[v1.28.2](https://github.com/nextcloud/nextcloudpi/commit/06017a4) (2020-08-02) nc-limits: adjust db size
[v1.29.0](https://github.com/nextcloud/nextcloudpi/commit/3cf269a) (2020-08-28) upgrade to NC19.0.2

[v1.28.1](https://github.com/nextcloud/nextcloudpi/commit/dda010b) (2020-08-02) nc-ramlogs: pin version
[v1.28.4 ](https://github.com/nextcloud/nextcloudpi/commit/4c5b207) (2020-08-02) ncp-backup-auto: fix exit status for cron

[v1.28.3 ](https://github.com/nextcloud/nextcloudpi/commit/81fcd14) (2020-08-02) ncp-autoupdate-apps: dont fail cron if no updates

[v1.28.2 ](https://github.com/nextcloud/nextcloudpi/commit/06017a4) (2020-08-02) nc-limits: adjust db size

[v1.28.1 ](https://github.com/nextcloud/nextcloudpi/commit/dda010b) (2020-08-02) nc-ramlogs: pin version

[v1.28.0 ](https://github.com/nextcloud/nextcloudpi/commit/99cfe9b) (2020-07-23) upgrade to NC18.0.7

Expand Down

0 comments on commit 76ffaec

Please sign in to comment.