diff options
author | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2014-09-27 19:11:30 +0800 |
---|---|---|
committer | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2014-09-27 19:11:35 +0800 |
commit | 2f71c15b93a2178e38bf8e24baef7d0cf886317d (patch) | |
tree | e346b8e1617fd695fd8a2a053ce34d022926369b /Makefile.in | |
parent | 7cad0069e8f4a652d0e22f1b0198f67399e80157 (diff) |
Makefile: warn about SELinux; avoid a bashism
Closes #63.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index ae2f1c30..32a62860 100644 --- a/Makefile.in +++ b/Makefile.in @@ -681,12 +681,17 @@ install-force: all install-translations @echo fish is now installed on your system. @echo To run fish, type \'fish\' in your terminal. @echo - @if type chsh &> /dev/null; then \ + @if type chsh >/dev/null 2>&1; then \ echo To use fish as your login shell:; \ grep -q -- "$(DESTDIR)$(bindir)/fish" /etc/shells || echo \* add the line \'$(DESTDIR)$(bindir)/fish\' to the file \'/etc/shells\'.; \ echo \* use the command \'chsh -s $(DESTDIR)$(bindir)/fish\'.; \ echo; \ fi; + @if type chcon >/dev/null 2>&1; then \ + echo If you have SELinux enabled, you may need to manually update the security policy:; \ + echo \* use the command \'chcon -t shell_exec_t $(DESTDIR)$(bindir)/fish\'.; \ + echo; \ + fi; @echo To set your colors, run \'fish_config\' @echo To scan your man pages for completions, run \'fish_update_completions\' @echo To autocomplete command suggestions press Ctrl + F or right arrow key. |