LittleDemon WebShell


Linux hosting5.siteguarding.com 3.10.0-962.3.2.lve1.5.88.el7.x86_64 #1 SMP Fri Sep 26 14:06:42 UTC 2025 x86_64
Path : /usr/share/lve/dbgovernor/scripts/
File Upload :
Command :
Current File : //usr/share/lve/dbgovernor/scripts/sync_hook

#!/bin/bash

# Detect username and plan from the postwwwacct script (whole account info is passed as arguments)
new_user=$(echo "$@" | awk '{for(i=1;i<=NF;i++) if ($i=="user") print $(i+1)}')
user_plan=$(echo "$@" | awk '{for(i=1;i<=NF;i++) if ($i=="plan") print $(i+1)}')

if [[ -n $new_user && -n $user_plan ]]; then
    # Sync governor limits only for this particular user and package
    /usr/share/lve/dbgovernor/governor_package_limitting.py sync --user="$new_user" --package="$user_plan"
fi

LittleDemon - FACEBOOK
[ KELUAR ]