Initial commit of template files
This commit is contained in:
13
usr/local/hestia/data/templates/web/nginx/php-fpm/nodejs.sh
Executable file
13
usr/local/hestia/data/templates/web/nginx/php-fpm/nodejs.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
user=$1
|
||||
domain=$2
|
||||
ip=$3
|
||||
home=$4
|
||||
docroot=$5
|
||||
|
||||
rm "$home/$user/web/$domain/node_app/app.sock"
|
||||
runuser -l $user -s /bin/bash -c "npm install --prefix $home/$user/web/$domain/node_app"
|
||||
runuser -l $user -s /bin/bash -c "npm start --prefix $home/$user/web/$domain/node_app"
|
||||
sleep 5
|
||||
chmod a+w "$home/$user/web/$domain/node_app/app.sock"
|
||||
Reference in New Issue
Block a user