HEX
Server: Apache
System: Linux whois01.turboservers.com.au 3.10.0-962.3.2.lve1.5.87.el7.x86_64 #1 SMP Tue Jan 28 09:38:56 UTC 2025 x86_64
User: ultimatemeditati (1528)
PHP: 5.6.40
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/vz-tools/tools/scripts/debian-netplan_restart.sh
#!/bin/bash
# Copyright (c) 2020 Virtuozzo International GmbH. All rights reserved.
#
# This script restart network inside Debian-based VM controlled by netplan.
#

prog="$0"
path="${prog%/*}"
funcs="$path/functions"

if [ -f "$funcs" ] ; then
	. $funcs
else
	echo "Program $prog"
	echo "File ${funcs} not found"
	exit 1
fi

if is_netplan_controlled; then
	$path/$NETPLAN_CFG -a "restart" -d "$1"
	exit $?
else
	exit 0
fi

# end of script