Skip to content

Commit ec94e6f

Browse files
committed
nc-static-IP: use ifdown/ifup
Signed-off-by: nachoparker <nacho@ownyourbits.com>
1 parent f9c9e37 commit ec94e6f

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

bin/ncp/NETWORKING/nc-static-IP.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ iface $IFACE inet dhcp
6161
auto lo
6262
iface lo inet loopback
6363
EOF
64-
systemctl restart NetworkManager
64+
ifdown "${IFACE}"
65+
ifup "${IFACE}"
6566
echo "DHCP enabled"
6667
return
6768
}
@@ -83,8 +84,9 @@ iface $IFACE inet static
8384
gateway $GW
8485
dns-nameservers $DNS 8.8.8.8
8586
EOF
86-
systemctl restart networking
8787
pkill dhclient
88+
ifdown "${IFACE}"
89+
ifup "${IFACE}"
8890
}
8991

9092
ncc config:system:set trusted_domains "${TRUSTED_DOMAINS[ip]}" --value="$IP"

changelog.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11

2-
[v1.41.1](https://github.com/nextcloud/nextcloudpi/commit/2c4cb42) (2021-10-14) letsencrypt: take into account the possibility of the ncp-nextcloud folder being used
2+
[v1.41.10](https://github.com/nextcloud/nextcloudpi/commit/042491f) (2021-10-18) nc-static-IP: use ifdown/ifup
3+
4+
[v1.41.9 ](https://github.com/nextcloud/nextcloudpi/commit/f9c9e37) (2021-10-18) fail2ban: fix UFW jail
5+
6+
[v1.41.8 ](https://github.com/nextcloud/nextcloudpi/commit/326de1d) (2021-10-15) fix dual IPv6 stack port checking
7+
8+
[v1.41.7 ](https://github.com/nextcloud/nextcloudpi/commit/78a88eb) (2021-10-18) ncp-web: remove dir indicator on nc-backup
9+
10+
[v1.41.6 ](https://github.com/nextcloud/nextcloudpi/commit/06ffb1e) (2021-10-18) nc-static-IP: make sure dhclient is no longer running
11+
12+
[v1.41.5 ](https://github.com/nextcloud/nextcloudpi/commit/74ed53f) (2021-10-15) letsencrypt: hardcode cert name to avoid -0001 paths
13+
14+
[v1.41.4 ](https://github.com/nextcloud/nextcloudpi/commit/0a866ca) (2021-10-15) save and restore maintenance mode status in ncp-apps
15+
16+
[v1.41.3 ](https://github.com/nextcloud/nextcloudpi/commit/80575ae) (2021-10-15) ncp-update-nc: check skip major versions
17+
18+
[v1.41.2 ](https://github.com/nextcloud/nextcloudpi/commit/cf4cfd8) (2021-10-15) also save hostname in trusted domains
19+
20+
[v1.41.1](https://github.com/nextcloud/nextcloudpi/commit/c75db63) (2021-10-14) letsencrypt: take into account the possibility of the ncp-nextcloud folder being used
321

422
[v1.41.0 ](https://github.com/nextcloud/nextcloudpi/commit/b41fad0) (2021-10-13) ncp-web: add NCP logs section
523

0 commit comments

Comments
 (0)