mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
bash: fix postinst script
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
+5
-4
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=bash
|
PKG_NAME:=bash
|
||||||
PKG_VERSION:=4.4.18
|
PKG_VERSION:=4.4.18
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=@GNU/bash
|
PKG_SOURCE_URL:=@GNU/bash
|
||||||
@@ -75,9 +75,10 @@ CONFIGURE_ARGS+= \
|
|||||||
|
|
||||||
define Package/bash/postinst
|
define Package/bash/postinst
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
grep bash $${IPKG_INSTROOT}/etc/shells || \
|
grep -q bash "$${IPKG_INSTROOT}/etc/shells" || {
|
||||||
echo "/bin/bash" >> $${IPKG_INSTROOT}/etc/shells
|
echo /bin/bash >> "$${IPKG_INSTROOT}/etc/shells"
|
||||||
echo "/bin/rbash" >> $${IPKG_INSTROOT}/etc/shells
|
echo /bin/rbash >> "$${IPKG_INSTROOT}/etc/shells"
|
||||||
|
}
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/bash/install
|
define Package/bash/install
|
||||||
|
|||||||
Reference in New Issue
Block a user