Fix: change bash to sh

Signed-off-by: urpylka <urpylka@gmail.com>
This commit is contained in:
urpylka
2018-03-10 18:02:05 +04:00
parent 3d59c78ad8
commit 3f7dec4d79
4 changed files with 6 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
##################################################################################################################################
# Установка необходимых программ

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
##################################################################################################################################
# Настройка интерфейсов

View File

@@ -1,4 +1,3 @@
#!/bin/bash
#!/bin/sh
set -e
@@ -243,7 +242,7 @@ mount_system2() {
cp -L /etc/resolv.conf $2/etc/resolv.conf
echo -e "\033[0;31m\033[1m$(date) | Enter chroot\033[0m\033[0m"
chroot $2 /bin/bash -c "$5"
chroot $2 /bin/sh -c "$5"
}
umount_system() {

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
##################################################################################################################################
# ROS for user pi
@@ -140,7 +140,7 @@ echo -e "\033[0;31m\033[1m$(date) | #13 Create catkin_ws\033[0m\033[0m"
mkdir -p /home/pi/catkin_ws/src \
&& cd /home/pi/catkin_ws \
&& source /opt/ros/kinetic/setup.bash \
&& . /opt/ros/kinetic/setup.sh \
&& catkin init \
&& wstool init /home/pi/catkin_ws/src
@@ -154,7 +154,7 @@ cd /home/pi/catkin_ws/src \
&& pip install wheel \
&& pip install -r /home/pi/catkin_ws/src/clever/clever/requirements.txt \
&& cd /home/pi/catkin_ws \
&& source /opt/ros/kinetic/setup.bash \
&& . /opt/ros/kinetic/setup.sh \
&& catkin_make -j1 \
&& systemctl enable /home/pi/catkin_ws/src/clever/deploy/roscore.service \
&& systemctl enable /home/pi/catkin_ws/src/clever/deploy/clever.service