mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
Merge pull request #7 from ezraholm50/patch-1
check for eth0 as well as ens33 for interface
This commit is contained in:
commit
cf245aeb72
@ -25,8 +25,14 @@ UNIXPASS=nextcloud
|
||||
fi
|
||||
|
||||
# Set correct interface
|
||||
sed -i "s|ens33|$IFACE|g" /etc/network/interfaces
|
||||
service networking restart
|
||||
if grep -Fxq "eth0" /etc/network/interfaces
|
||||
then
|
||||
sed -i "s|eth0|$IFACE|g" /etc/network/interfaces
|
||||
service networking restart
|
||||
else
|
||||
sed -i "s|ens33|$IFACE|g" /etc/network/interfaces
|
||||
service networking restart
|
||||
fi
|
||||
|
||||
# Check network
|
||||
echo "Testing if network is OK..."
|
||||
|
||||
Loading…
Reference in New Issue
Block a user