Last active
April 30, 2023 08:30
-
-
Save pandanote-info/6d5abf29e0b21fcf12bfec25fea0831b to your computer and use it in GitHub Desktop.
Fedora+nginxのアップデートまたはアップグレードを行う際に、nginx用の設定ファイルのownerをnginxユーザに戻すためのシェルスクリプト。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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