I have a bash script to backup DB. It’s on:
/home/username/web/domain/scripts/BackupDB.sh
I give it permission with chmod +x but everyday the permission reverts and I get Permission denied.
This script is run with a cronjob once a day, permissions are given by the user of that account.
What is changing the execution permision? Should I put the script on another path?
It’s all ok but I see one “problem”, it’s not related to the issue executing the script and it’s not your fault.
Directory domain.com has 751 permissions but by default, Hestia should use 551 so the user can’t create/delete directories inside that dir. And that’s correct when adding the web domain but when rebuilding it, it changes the perm to 751 and this should only happen if you enabled directive DOMAINDIR_WRITABLE=yes
This change added this:
But when adding support to restic, this line was modified:
@eris do you know whether that change from no_symlink_chmod $DOMAINDIR_MODE to no_symlink_chmod 751 is because some requisite to restic backups? If no, let me know and I’ll open a PR to fix it.