/bin/bash to /bin/sh

FiXING THE BIN BASH TO SH

The sh is not pointing to bash using the script.

root@debian:/home/rex# bash version-check.sh

bash, version 4.4.12(1)-release

/bin/sh -> /bin/dash

ERROR: /bin/sh does not point to bash

Check the path.

root@debian:/home/rex# ls -al /bin/sh

lrwxrwxrwx 1 root root 4 Jan 24 2017 /bin/sh -> dash

Remove the old path configuration which is pointed to dash. Execute command below.

root@debian:/home/rex# rm /bin/sh

Changing the the path.

root@debian:/home/rex# ln -s /bin/sh /bin/bash

Below result successfully point to /bin/bash.

bash, version 4.4.12(1)-release

/bin/sh -> /bin/bash