File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed
Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -337,6 +337,27 @@ if [ ! -z "$conflicts" ] && [ -z "$force" ]; then
337337 check_result 1 " Control Panel should be installed on clean server."
338338fi
339339
340+ # Check network configuration
341+ if [ -d /etc/netplan ] && [ -z " $force " ]; then
342+ if [ -z " $( ls -A /etc/netplan) " ]; then
343+ echo ' !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!!'
344+ echo
345+ echo ' Noticed a empty netplan configuration directory.'
346+ echo ' You may have a network configuration file using systemd-networkd,'
347+ echo ' we strongly suggest to migrate to a fully netplan configuration.'
348+ echo ' '
349+ echo ' You can leave this like it is, but you will be not able to use'
350+ echo ' additional ips properly'
351+ echo ' '
352+ echo ' If you want to force installation run this script with -f option:'
353+ echo " Example: bash $0 --force"
354+ echo
355+ echo ' !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!!'
356+ echo
357+ check_result 1 " Noticed unused netplan configuration."
358+ fi
359+ fi
360+
340361
341362# ----------------------------------------------------------#
342363# Brief Info #
Original file line number Diff line number Diff line change @@ -315,6 +315,27 @@ if [ ! -z "$conflicts" ] && [ -z "$force" ]; then
315315 check_result 1 " Control Panel should be installed on clean server."
316316fi
317317
318+ # Check network configuration
319+ if [ -d /etc/netplan ] && [ -z " $force " ]; then
320+ if [ -z " $( ls -A /etc/netplan) " ]; then
321+ echo ' !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!!'
322+ echo
323+ echo ' Noticed a empty netplan configuration directory.'
324+ echo ' You may have a network configuration file using systemd-networkd,'
325+ echo ' we strongly suggest to migrate to a fully netplan configuration.'
326+ echo ' '
327+ echo ' You can leave this like it is, but you will be not able to use'
328+ echo ' additional ips properly'
329+ echo ' '
330+ echo ' If you want to force installation run this script with -f option:'
331+ echo " Example: bash $0 --force"
332+ echo
333+ echo ' !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!!'
334+ echo
335+ check_result 1 " Noticed unused netplan configuration."
336+ fi
337+ fi
338+
318339
319340# ----------------------------------------------------------#
320341# Brief Info #
You can’t perform that action at this time.
0 commit comments