updating scripts

This commit is contained in:
2026-04-02 11:26:40 +01:00
parent b5c2d4593d
commit f9e935dcec
6 changed files with 70 additions and 96 deletions

18
bash-scripts/master-perms.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
# This script will update the permissions of the /home/zaine/master-folder directory and all its contents to ensure that the nextcloud user has the necessary permissions to access and modify files within that directory.
# The two commands to run are:
# sudo chown -R zaine:www-data /home/zaine/master-folder
# sudo chmod -R 2775 /home/zaine/master-folder
# Update ownership to zaine:www-data
sudo chown -R zaine:www-data /home/zaine/master-folder
# Update permissions to 2775
sudo chmod -R 2775 /home/zaine/master-folder
echo "Permissions updated for /home/zaine/master-folder and its contents."
# cron job to run this script every hour
# 0 * * * * /path/to/this/script.sh