Date: Thursday, February 2, 2023 @ 06:36:37
Author: tpowa
Revision: 467798
add bash.install for adding rbash to /etc/shells on upgrade
Added:
bash/trunk/bash.install
Modified:
bash/trunk/PKGBUILD
--------------+
PKGBUILD | 1 +
bash.install | 5 +++++
2 files changed, 6 insertions(+)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2023-02-02 06:25:03 UTC (rev 467797)
+++ PKGBUILD 2023-02-02 06:36:37 UTC (rev 467798)
@@ -17,6 +17,7 @@
depends=(readline libreadline.so glibc ncurses)
optdepends=('bash-completion: for tab completion')
provides=('sh')
+install=bash.install
source=(https://ftp.gnu.org/gnu/bash/bash-$_basever.tar.gz{,.sig}
dot.bashrc
dot.bash_profile
Added: bash.install
===================================================================
--- bash.install (rev 0)
+++ bash.install 2023-02-02 06:36:37 UTC (rev 467798)
@@ -0,0 +1,5 @@
+post_upgrade() {
+ grep -qe '^/bin/rbash$' etc/shells || echo '/bin/rbash' >> etc/shells
+ grep -qe '^/usr/bin/rbash$' etc/shells || echo '/usr/bin/rbash' >>
etc/shells
+}
+