diff options
-rw-r--r-- | bin/ncp/NETWORKING/nc-static-IP.sh | 2 | ||||
-rw-r--r-- | 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..3820ce2b 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.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 |