début de www-data installe node
This commit is contained in:
		@@ -33,6 +33,7 @@ if (json_last_error() !== JSON_ERROR_NONE) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// success, do something
 | 
			
		||||
$repo_name = $decoded['repository']['name'];
 | 
			
		||||
echo "launching hook script    ";
 | 
			
		||||
shell_exec('sh ../webhook/webhook.sh 2>&1');
 | 
			
		||||
echo shell_exec('bash ../webhook/webhook.sh ' . $repo_name  . ' 2>&1');
 | 
			
		||||
?>
 | 
			
		||||
@@ -1,15 +1,10 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
username=$(getent passwd 1000 | cut -d: -f1)
 | 
			
		||||
cd /home/$username
 | 
			
		||||
directories=$(find . -maxdepth 1 -type d -printf "%f\n")
 | 
			
		||||
for dir in $directories; do
 | 
			
		||||
    if [[ ! "$dir" =~ ^cms ]]; then
 | 
			
		||||
        cd "$dir" || exit
 | 
			
		||||
        break
 | 
			
		||||
    fi
 | 
			
		||||
done
 | 
			
		||||
repo_name=$1
 | 
			
		||||
cd /home/$username/$repo_name
 | 
			
		||||
pwd
 | 
			
		||||
git pull origin prod
 | 
			
		||||
tmux send-keys -t directus C-c
 | 
			
		||||
NUXT_TELEMETRY_DISABLED=1 bash -c \"npm run build\"
 | 
			
		||||
tmux send-keys -t front \"cd /home/${username}/${front_folder} && node .output/server/index.mjs\" C-m
 | 
			
		||||
tmux send-keys -t directus \"npx directus start\" C-m
 | 
			
		||||
#tmux send-keys -t directus C-c
 | 
			
		||||
#NUXT_TELEMETRY_DISABLED=1 bash -c \"npm run build\"
 | 
			
		||||
#tmux send-keys -t front \"cd /home/${username}/${front_folder} && node .output/server/index.mjs\" C-m
 | 
			
		||||
#tmux send-keys -t directus \"npx directus start\" C-m
 | 
			
		||||
		Reference in New Issue
	
	Block a user