debug de bugs

This commit is contained in:
Valentin 2024-05-31 16:35:01 +02:00
parent 8e757fcd3b
commit ba5dec49ba
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ if [[ "$answer" == "y" ]]; then
cms_directory="/var/www/repositories/"$(ls /var/www/repositories | grep cms) cms_directory="/var/www/repositories/"$(ls /var/www/repositories | grep cms)
rm -r "${backup_directory}/uploads" rm -r "${cms_directory}/uploads"
mv -f "${backup_directory}/uploads" "${cms_directory}/" mv -f "${backup_directory}/uploads" "${cms_directory}/"
chown -R www-data:www-data "${cms_directory}/uploads" chown -R www-data:www-data "${cms_directory}/uploads"
@ -45,7 +45,7 @@ if [[ "$answer" == "y" ]]; then
rm -r $backup_directory rm -r $backup_directory
if [ -f "/var/www/webhook/webhook.sh" ]; then if [ -f "/var/www/webhook/webhook.sh" ]; then
./var/www/webhook/webhook.sh Backup_import bash /var/www/webhook/webhook.sh Backup_import
fi fi
else else
echo -e "${PURPLE}${BOLD}Please import a .tar.gz backup in /home/${username}${RESET}" echo -e "${PURPLE}${BOLD}Please import a .tar.gz backup in /home/${username}${RESET}"