From 27b0c6b7b9a59927e2ff7c2d9dfbd3c02a669f5d Mon Sep 17 00:00:00 2001 From: Brooks <603632+bmbeverst@users.noreply.github.com> Date: Wed, 26 Aug 2020 20:16:11 -0400 Subject: Restricting gateway to one line in static-IP script Signed-off-by: Brooks <603632+bmbeverst@users.noreply.github.com> --- bin/ncp/NETWORKING/nc-static-IP.sh | 2 +- changelog.md | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/bin/ncp/NETWORKING/nc-static-IP.sh b/bin/ncp/NETWORKING/nc-static-IP.sh index 0a25d7f4..8f408788 100644 --- a/bin/ncp/NETWORKING/nc-static-IP.sh +++ b/bin/ncp/NETWORKING/nc-static-IP.sh @@ -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 )" diff --git a/changelog.md b/changelog.md index 170a374a..2c11be81 100644 --- a/changelog.md +++ b/changelog.md @@ -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.1](https://github.com/nextcloud/nextcloudpi/commit/9475096) (2020-08-26) Restricting gateway to one line in static-IP script -[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 -- cgit v1.2.3