Hello!
I'm trying to run a simple bash script when a new account is created, because I need to move some files automatically. So what I did:
I'm trying to run a simple bash script when a new account is created, because I need to move some files automatically. So what I did:
- I have created a simple bash script for testing if Plesk run it, called move_some_files.sh under /var/www
Code:#!/bin/bash echo "${NEW_SYSTEM_USER} ${NEW_DOMAIN_NAME}" >> move_some_files.log
- I created a new 'Hosting settings created' event running as root and with the highest priority with this command: /var/www/move_some_files.sh
- I created a new customer with to test it
But, is not running the script! If I try some command directly on the event like 'touch /var/www/new_file' it's created, so the event is running, but not my script.
Any idea?