[ 
https://issues.apache.org/jira/browse/IOTDB-5653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17698297#comment-17698297
 ] 

ZhangZhengming commented on IOTDB-5653:
---------------------------------------

我们如下的脚本都是用/bin/sh,为避免以后出问题可以讲这些都修改为/bin/bash

!image-2023-03-09-18-00-32-312.png!

> Some of the shell scripts in IoTDB are called by /bin/sh, it would fail on 
> docker deployment
> --------------------------------------------------------------------------------------------
>
>                 Key: IOTDB-5653
>                 URL: https://issues.apache.org/jira/browse/IOTDB-5653
>             Project: Apache IoTDB
>          Issue Type: Bug
>    Affects Versions: 1.1.0-SNAPSHOT
>            Reporter: changxue
>            Assignee: Haonan Hou
>            Priority: Major
>         Attachments: image-2023-03-09-18-00-32-312.png
>
>
> Some of the shell scripts in IoTDB are called by /bin/sh, it would fail on 
> docker deployment
> bug:
> When I execute remove-datanode.sh in a docker container:
> {code}
> root@i-lx1zh95i:/iotdb/sbin# ./remove-datanode.sh 1
> ---------------------
> Starting to remove a DataNode
> ---------------------
> ./remove-datanode.sh: 25: source: not found
> ./remove-datanode.sh: 28: get_iotdb_include: not found
> ./remove-datanode.sh: 29: checkAllVariables: not found
> ./remove-datanode.sh: 35: initEnv: not found
> ./remove-datanode.sh: 56: exec: : Permission denied
> {code}
> I replaced this file with a new one which replace /bin/sh with /bin/bash on 
> the first line, then it run successfully.
> list the shell scripts with /bin/sh on the first line:
> {code}
> iotdb-common.sh:#!/bin/sh
> start-cli.sh:#!/bin/sh
> start-standalone.sh:#!/bin/sh
> stop-standalone.sh:#!/bin/sh
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to