Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fedora+nginxのアップデートまたはアップグレードを行う際に、nginx用の設定ファイルのownerをnginxユーザに戻すためのシェルスクリプト。
#!/bin/sh
# See https://pandanote.info/?p=8118 for details.
chown -R nginx /etc/wordpress
chown -R nginx /var/lib/php/session
chown -R nginx /var/lib/php/wsdlcache/
chown -R nginx /var/lib/php/opcache/
chown -R nginx /usr/share/wordpress/wp-content/uploads/
chown nginx:nginx /var/log/nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment