correction du webhook.sh

This commit is contained in:
Valentin 2024-02-26 18:00:57 +01:00
parent 75220e3b60
commit 32e290e03c
2 changed files with 4 additions and 5 deletions

View File

@ -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

View File

@ -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