correction pb de permission ç l'import des backups

This commit is contained in:
Valentin 2024-05-31 16:57:01 +02:00
parent ba5dec49ba
commit 369145c83e
1 changed files with 3 additions and 1 deletions

View File

@ -45,7 +45,9 @@ if [[ "$answer" == "y" ]]; then
rm -r $backup_directory
if [ -f "/var/www/webhook/webhook.sh" ]; then
bash /var/www/webhook/webhook.sh Backup_import
su -s /bin/bash -c "bash /var/www/webhook/webhook.sh Backup_import" www-data
else
echo -e "${PURPLE}${BOLD}Could not trigger the build because of lack of webhook${RESET}"
fi
else
echo -e "${PURPLE}${BOLD}Please import a .tar.gz backup in /home/${username}${RESET}"