correction du webhook.sh
This commit is contained in:
		@@ -1,10 +1,10 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
username=$(getent passwd 1000 | cut -d: -f1)
 | 
			
		||||
repo_name=$1
 | 
			
		||||
cd /home/$username/$repo_name
 | 
			
		||||
cd /var/www/repositories/$repo_name
 | 
			
		||||
git pull origin prod
 | 
			
		||||
tmux send-keys -t directus C-c
 | 
			
		||||
npm i
 | 
			
		||||
npm run build
 | 
			
		||||
tmux send-keys -t front \"cd /home/${username}/${front_folder} && node .output/server/index.mjs\" C-m
 | 
			
		||||
tmux send-keys -t front C-c
 | 
			
		||||
tmux send-keys -t front \"cd /var/www/repositories/${repo_name} && node .output/server/index.mjs\" C-m
 | 
			
		||||
tmux send-keys -t directus \"npx directus start\" C-m
 | 
			
		||||
@@ -417,11 +417,10 @@ if [[ "$answer" == "y" ]]; then
 | 
			
		||||
    fi
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
apt purge expect
 | 
			
		||||
 | 
			
		||||
# TODO
 | 
			
		||||
#
 | 
			
		||||
# REMOVE EXPECT AT THE END IF IT IS INSTALLED
 | 
			
		||||
# CREATE AN ASSETS FOLDER WITH THE DIRECTUS ENV
 | 
			
		||||
# ZABBIX
 | 
			
		||||
# URBACKUP
 | 
			
		||||
# DIRECTUS EMAIL
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user