Skip to content

Commit 1af74d5

Browse files
TomatoAresCui Shuaijie
andauthored
style: add license to shell (#1480)
Co-authored-by: Cui Shuaijie <arescui@tencent.com>
1 parent e60e3f1 commit 1af74d5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+839
-43
lines changed

build/docker/tke-auth-api/build.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
11
#!/usr/bin/env bash
22

3+
# Tencent is pleased to support the open source community by making TKEStack
4+
# available.
5+
#
6+
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
7+
#
8+
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
9+
# this file except in compliance with the License. You may obtain a copy of the
10+
# License at
11+
#
12+
# https://opensource.org/licenses/Apache-2.0
13+
#
14+
# Unless required by applicable law or agreed to in writing, software
15+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16+
# WARRANTIES OF ANY KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations under the License.
18+
319
cp -r pkg/auth/web "$DST_DIR"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
11
#!/usr/bin/env bash
22

3+
# Tencent is pleased to support the open source community by making TKEStack
4+
# available.
5+
#
6+
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
7+
#
8+
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
9+
# this file except in compliance with the License. You may obtain a copy of the
10+
# License at
11+
#
12+
# https://opensource.org/licenses/Apache-2.0
13+
#
14+
# Unless required by applicable law or agreed to in writing, software
15+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16+
# WARRANTIES OF ANY KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations under the License.
18+
319
cp -r hack/auth "$DST_DIR"

build/docker/tke-gateway/build.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
#!/usr/bin/env bash
22

3+
# Tencent is pleased to support the open source community by making TKEStack
4+
# available.
5+
#
6+
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
7+
#
8+
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
9+
# this file except in compliance with the License. You may obtain a copy of the
10+
# License at
11+
#
12+
# https://opensource.org/licenses/Apache-2.0
13+
#
14+
# Unless required by applicable law or agreed to in writing, software
15+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16+
# WARRANTIES OF ANY KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations under the License.
18+
319
set -o xtrace
420
set -e
521

build/docker/tools/code-generator/code.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Tencent is pleased to support the open source community by making TKEStack
44
# available.
55
#
6-
# Copyright (C) 2012-2020 Tencent. All Rights Reserved.
6+
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
77
#
88
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
99
# this file except in compliance with the License. You may obtain a copy of the

build/docker/tools/code-generator/openapi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Tencent is pleased to support the open source community by making TKEStack
44
# available.
55
#
6-
# Copyright (C) 2012-2020 Tencent. All Rights Reserved.
6+
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
77
#
88
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
99
# this file except in compliance with the License. You may obtain a copy of the

build/docker/tools/provider-res/download.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Tencent is pleased to support the open source community by making TKEStack
44
# available.
55
#
6-
# Copyright (C) 2012-2019 Tencent. All Rights Reserved.
6+
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
77
#
88
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
99
# this file except in compliance with the License. You may obtain a copy of the

build/docker/tools/provider-res/run.sh

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
#!/usr/bin/env bash
22

3+
# Tencent is pleased to support the open source community by making TKEStack
4+
# available.
5+
#
6+
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
7+
#
8+
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
9+
# this file except in compliance with the License. You may obtain a copy of the
10+
# License at
11+
#
12+
# https://opensource.org/licenses/Apache-2.0
13+
#
14+
# Unless required by applicable law or agreed to in writing, software
15+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16+
# WARRANTIES OF ANY KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations under the License.
18+
319
set -o errexit
420
set -o nounset
521
set -o pipefail
@@ -15,4 +31,4 @@ VERSION=$(echo /${RPM_DIR}/${PKG}* | grep -oP '\d+\.\d+\.\d+')
1531
cd ${INSTALL_DIR}
1632
for rpm in ${RPM_DIR}/*.rpm; do rpm2cpio $rpm | cpio -idm; done
1733

18-
tar -cvzf /output/${PKG}-${OS}-${ARCH}-${VERSION}.tar.gz *
34+
tar -cvzf /output/${PKG}-${OS}-${ARCH}-${VERSION}.tar.gz *

build/docker/tools/tke-installer/build.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Tencent is pleased to support the open source community by making TKEStack
44
# available.
55
#
6-
# Copyright (C) 2012-2019 Tencent. All Rights Reserved.
6+
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
77
#
88
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
99
# this file except in compliance with the License. You may obtain a copy of the
@@ -16,7 +16,6 @@
1616
# WARRANTIES OF ANY KIND, either express or implied. See the License for the
1717
# specific language governing permissions and limitations under the License.
1818

19-
2019
set -o errexit
2120
set -o nounset
2221
set -o pipefail

build/docker/tools/tke-installer/init_installer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Tencent is pleased to support the open source community by making TKEStack
44
# available.
55
#
6-
# Copyright (C) 2012-2019 Tencent. All Rights Reserved.
6+
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
77
#
88
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
99
# this file except in compliance with the License. You may obtain a copy of the

build/docker/tools/tke-installer/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Tencent is pleased to support the open source community by making TKEStack
44
# available.
55
#
6-
# Copyright (C) 2012-2019 Tencent. All Rights Reserved.
6+
# Copyright (C) 2012-2021 Tencent. All Rights Reserved.
77
#
88
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
99
# this file except in compliance with the License. You may obtain a copy of the
@@ -170,7 +170,7 @@ function check_installer() {
170170
done
171171
echo "check installer status error"
172172
docker logs tke-installer
173-
exit 1
173+
exit 1
174174
}
175175

176176
preflight

0 commit comments

Comments
 (0)