• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Running script from Plesk Event 'Hosting settings created'

NikolasP

New Pleskian
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:

  1. 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 this file as root and did chmod +x.
  2. 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
  3. 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?
 
Back
Top