On Tue, Nov 03, 2020 at 06:32:43PM +0800, Cao Xueliang wrote:
On Tue, Nov 03, 2020 at 04:47:23PM +0800, Yu Chuan wrote:
[Why] 'load custom dnsmasq.conf' step will cp custom config to WORKSPACE, but when a user without permission execute this step, cp will failed.
So add 'set -e' at the beginning of the script to solve this problem.
Add 'set -d' can solve without permission?
^e
You should make the changlog more clear.
Thanks, Xueliang
Signed-off-by: Yu Chuan 13186087857@163.com
container/dnsmasq/start | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/container/dnsmasq/start b/container/dnsmasq/start index ff4247046eb1..b2eefbd89c16 100755 --- a/container/dnsmasq/start +++ b/container/dnsmasq/start @@ -2,6 +2,8 @@ # SPDX-License-Identifier: MulanPSL-2.0+ # Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved.
+set -e
. $CCI_SRC/container/defconfig.sh
docker_rm dnsmasq
2.23.0