From 369145c83ed324555de903371508ab9255c512ae Mon Sep 17 00:00:00 2001 From: Valentin Date: Fri, 31 May 2024 16:57:01 +0200 Subject: [PATCH] =?UTF-8?q?correction=20pb=20de=20permission=20=C3=A7=20l'?= =?UTF-8?q?import=20des=20backups?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/import_backup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/import_backup.sh b/utils/import_backup.sh index 1185970..1148a88 100644 --- a/utils/import_backup.sh +++ b/utils/import_backup.sh @@ -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}"