Skip to content

Commit

Permalink
[INLONG-10210][Agent] Add a script for environment initialization (#1…
Browse files Browse the repository at this point in the history
…0211)

Co-authored-by: Charles Zhang <dockerzhang@apache.org>
  • Loading branch information
justinwwhuang and dockerzhang committed May 13, 2024
1 parent 61d2b74 commit 065392d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
10 changes: 10 additions & 0 deletions inlong-agent/agent-installer/assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<!-- for bin -->
<fileSet>
<directory>environment</directory>
<includes>
<include>*.*</include>
</includes>
<fileMode>0755</fileMode>
<outputDirectory>environment</outputDirectory>
<lineEnding>unix</lineEnding>
</fileSet>

<fileSet>
<directory>bin</directory>
<includes>
Expand Down
20 changes: 20 additions & 0 deletions inlong-agent/agent-installer/environment/init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# This script is used for environment initialization and can be modified according to different environments
echo "Begin initializing the environment"

0 comments on commit 065392d

Please sign in to comment.