Files
general-scripts-and-system-…/customscripts/fix_permissions
T

6 lines
192 B
Bash

#!/bin/bash
[ "root" != "$USER" ] && exec sudo $0 "$@"
chown -R www-data:www-data /var/www/*
find /var/www/* -type d -exec chmod g=rwx "{}" \;
find /var/www/* -type f -exec chmod g=rw "{}" \;