From 8e757fcd3b852c11320f216a0eefabb6d9b9842a Mon Sep 17 00:00:00 2001 From: Valentin Date: Fri, 31 May 2024 16:31:53 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20du=20build=20=C3=A0=20l'import=20de=20b?= =?UTF-8?q?ackup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/import_backup.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utils/import_backup.sh b/utils/import_backup.sh index 747ca00..294d1dc 100644 --- a/utils/import_backup.sh +++ b/utils/import_backup.sh @@ -37,11 +37,16 @@ if [[ "$answer" == "y" ]]; then cms_directory="/var/www/repositories/"$(ls /var/www/repositories | grep cms) + rm -r "${backup_directory}/uploads" mv -f "${backup_directory}/uploads" "${cms_directory}/" chown -R www-data:www-data "${cms_directory}/uploads" rm -r $backup_directory + + if [ -f "/var/www/webhook/webhook.sh" ]; then + ./var/www/webhook/webhook.sh Backup_import + fi else echo -e "${PURPLE}${BOLD}Please import a .tar.gz backup in /home/${username}${RESET}" fi