Last active
February 27, 2019 17:55
-
-
Save kazuhisya/6315460 to your computer and use it in GitHub Desktop.
石川さんごめんなさいのおまじない。
This file contains hidden or 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
#!/usr/bin/env bash | |
echo "I'm sorry Ishikawa-san." | |
echo "I'm sorry Ishikawa-san." | |
echo "I'm sorry Ishikawa-san." | |
sed --follow-symlinks -i 's;SELINUX=enforcing;SELINUX=disabled;g' /etc/sysconfig/selinux | |
setenforce 0 |
/etc/sysconfig/selinux は /etc/selinux/config のシンボリックリンクなので
--follow-symlinks を付けるか、/etc/selinux/config を置換対象にします。
👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is must to say repeated three times.
see also: https://twitter.com/ishikawa84g/statuses/291133916931293184