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}"