Skip to content

Instantly share code, notes, and snippets.

View marcuspaget's full-sized avatar

Mark Paget marcuspaget

View GitHub Profile
@marcuspaget
marcuspaget / fix-wordpress-permissions.sh
Last active March 13, 2019 12:45 — forked from Adirael/fix-wordpress-permissions.sh
Fix wordpress file permissions
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
#
# - Mark: Added checking for root user and passing a directory name
[ `id -u` -eq 0 ] || {