Hooks actions after add user

Hi, can HestiaCP do actions in hooks after add user looks like DirectAdmin?

You can run actions with the package but will get executed every time packages get changed…]

Create a file in /usr/local/hestia/data/packages/package.sh where package = the name of the package

@eris Can you extend how to make hooks? What variables is used?

$HESTIA/data/packages/$package.sh "$user" "$email" "$name"
#!/bin/bash 

user=$1
email=$2
name=$3

/usr/local/hestia/bin/v-add-user-wp-cli $user

Will install WPCLI for the user

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.