X-Git-Url: https://gitweb.arthurtaft.net/website.git/blobdiff_plain/db3de196e6d2247de815f63b2d8239aab42a8ae2..a3afaa0f8a5845c7a52719106d7bc0358908bd39:/change-perms?ds=sidebyside diff --git a/change-perms b/change-perms new file mode 100755 index 0000000..59faa92 --- /dev/null +++ b/change-perms @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +if (( EUID != 0 )); then + echo "Script must be ran as root!" + exit 1 +fi + +chown -R root:nginx /var/www/arthurtaft.net + +find /var/www/arthurtaft.net -type d -exec chmod 755 {} \; + +find /var/www/arthurtaft.net -type f -exec chmod 644 {} \;