diff options
author | 2018-02-07 10:20:19 +0100 | |
---|---|---|
committer | 2018-02-07 10:20:19 +0100 | |
commit | f16fd7f0de5af1adb572d879f921918fda09c725 (patch) | |
tree | 6bd88f84375924516af0d96216dfa378d3e32ffe /INSTALL/common.d/10_base | |
parent | f145d7ca1ae85950dce357ccefdc52ce008d84e1 (diff) | |
parent | 217bd04b7490a593d6fc2c3cb0c65457a2bf9fac (diff) |
Diffstat (limited to 'INSTALL/common.d/10_base')
-rw-r--r-- | INSTALL/common.d/10_base | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/INSTALL/common.d/10_base b/INSTALL/common.d/10_base index e429e65..5cff36b 100644 --- a/INSTALL/common.d/10_base +++ b/INSTALL/common.d/10_base @@ -1,5 +1,16 @@ #!/bin/bash +# set bash as default shell for /bin/sh +diverter=$(dpkg-divert --listpackage /bin/sh) +[[ "$diverter" == "dash" ]] && { + # inspired by dash postinstall + dpkg-divert --package dash --remove /bin/sh + dpkg-divert --package bash --divert /bin/sh.distrib --add /bin/sh + [[ -e /bin/sh ]] && cp -dp /bin/sh /bin/sh.distrib + ln -sf bash /bin/sh.tmp + mv -f /bin/sh.tmp /bin/sh +} + # add backports and testing repositories echo "deb http://http.debian.net/debian jessie-backports main contrib" >>/etc/apt/sources.list |