1
0

Initial commit of template files

This commit is contained in:
Jason Williams
2025-08-08 08:57:16 -06:00
commit 15d77b7766
6 changed files with 138 additions and 0 deletions

View 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"