Skip to content

Instantly share code, notes, and snippets.

@pandanote-info
Last active April 30, 2023 08:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pandanote-info/6d5abf29e0b21fcf12bfec25fea0831b to your computer and use it in GitHub Desktop.
Save pandanote-info/6d5abf29e0b21fcf12bfec25fea0831b to your computer and use it in GitHub Desktop.
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