Why custom template .sh file not execute on edit web?

hi,
i install nodejs on my nginx+php-fpm server. successfully run and access using domain name.

i created three template files :
/usr/local/hestia/data/templates/web/nginx/php-fpm/nodejs3000.tpl /usr/local/hestia/data/templates/web/nginx/php-fpm/nodejs3000.stpl /usr/local/hestia/data/templates/web/nginx/php-fpm/nodejs3000.sh

nodejs3000.sh :

#!/bin/bash
user=$1
domain=$2
ip=$3
home=$4
docroot=$5

runuser -l $user -c "pm2 start $home/$user/web/$domain/public_html/app.js"

no issue with .tpl and .stpl but when i edit web can’t run nodejs3000.sh.
i also add mkdir "/home/admin/web/domain.com/public_html/TEST" for test.
but can’t create new folder when edit web domain.
nodejs3000.sh file permission is 755.

why not execute .sh file?
thank you,

It should trigger when you update the backend template

already switch backend and nginx template many time.
first select no-php then again select nodejs3000 but can’t create new directory

nodejs3000.sh

#!/bin/bash
mkdir "/home/admin/web/pi6.com/public_html/SH/TEST1"

…/public_html/SH permission is 777

have you added the executable bit? chmod +x yourscript.sh

how to add executable bit?

check my comment, its written there…

Is there a reason you made the folder world writable? That’s a generally unsafe permission that is best avoided.

set 777 for test only.

not work.
chmod 755 /usr/local/hestia/data/templates/web/nginx/php-fpm/nodejs3000.sh
chmod +x /usr/local/hestia/data/templates/web/nginx/php-fpm/nodejs3000.sh