GhostManSec
Server: Apache
System: Linux 57.167.178.68.host.secureserver.net 3.10.0-1160.118.1.el7.x86_64 #1 SMP Wed Apr 24 16:01:50 UTC 2024 x86_64
User: countrycraft1 (1001)
PHP: 7.4.33
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