Skip to content

Commit

Permalink
Permission updates
Browse files Browse the repository at this point in the history
  • Loading branch information
NuwanJ committed Oct 24, 2024
1 parent 6a22ae3 commit d1dcf41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions scripts/deploy-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ php artisan view:cache
# Not run in dev mode. Must manually done
# echo "Running: Setting permissions"
# sudo chown -R www-data:www-data ./
# sudo find ./ -type f -exec chmod 644 {} \;
# sudo find ./ -type d -exec chmod 755 {} \;
# sudo find ./ -type f -exec chmod 751 {} \;
# sudo find ./ -type f -exec chmod 740 {} \

echo "Running: Restarting the queue"
php artisan queue:restart
Expand Down
8 changes: 4 additions & 4 deletions scripts/deploy-prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ php artisan view:cache
echo "Running: Setting permissions"
sudo chown -R www-data:www-data ./

# Set directory permissions to 755 (rwxr-xr-x)
sudo find ./ -type d -exec chmod 755 {} \;
# Set directory permissions to 755 (rwxr-x--x)
sudo find ./ -type d -exec chmod 751 {} \;

# Set file permissions to 644 (rw-r--r--)
sudo find ./ -type f -exec chmod 644 {} \;
# Set file permissions to 644 (rwxr-----)
sudo find ./ -type f -exec chmod 740 {} \;

# Ensure storage and cache directories are writable
sudo chmod -R 775 ./storage/*
Expand Down

0 comments on commit d1dcf41

Please sign in to comment.