- Plesk for Linux
A Bash script configured in the Git Additional Deployment actions fails to execute with a not found error:
application_name:command not found
The commands or bash script set under Domains > example.com > Git > Repository Settings > Deploy actions uses absolute paths. For example:
The SSH Access Type is set to Forbidden or /bin/bash chrooted) under Domains > example.com > Hosting & DNS > Hosting.
The domain is configured to execute the Git additional deployment actions on a chroot environment while using absolute instead of relative paths.
Apply one of the following solutions:
Go to Domains > example.com > Git > Repository Settings (icon)
Change all absolute paths under Deploy actions for relative paths e.g. For an script located in
/var/www/vhost/example.com/git/script.shset the path as
Note: All the commands included inside the script file need to use the relative path.
In case the Deploy actions or the script requires to run commands other than basic ones (less, tar, zip) by default these will need to be added into the chrooted shell environment template
Go to Domains > example.com > Hosting & DNS > Hosting
Change the SSH Access Type to
Warning: The user will obtain all access as an ordinary user, including access to /bin, /user etc., as well as to run any application.