correction pb de permission ç l'import des backups
This commit is contained in:
parent
ba5dec49ba
commit
369145c83e
|
|
@ -45,7 +45,9 @@ 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
|
||||||
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
|
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}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue