Skip to content

Commit 39640bd

Browse files
authored
Merge pull request #633 from Lingghh/dev/opti_docker_script_20220926
🎨 完善镜像工具复制方式
2 parents 7476c73 + 86dc18d commit 39640bd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/docker/start.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ function init_directory() {
4141
chown -R mysql:mysql /var/log/tca/mariadb /var/opt/tca/mariadb /run/mysqld
4242

4343
if [ -d "/CodeAnalysis/tools" ]; then
44-
mv /CodeAnalysis/tools /var/opt/tca/
44+
rsync -a /CodeAnalysis/tools/ /var/opt/tca/tools/
45+
rm -rf /CodeAnalysis/tools
46+
# mv -f /CodeAnalysis/tools /var/opt/tca/tools/
4547
ln -s /var/opt/tca/tools /CodeAnalysis/tools
4648
else
4749
ln -s /var/opt/tca/tools /CodeAnalysis/tools
@@ -52,6 +54,7 @@ function init_directory() {
5254
else
5355
mv /CodeAnalysis/scripts/config.sh /CodeAnalysis/scripts/config.sh.bak
5456
ln -s /etc/tca/config.sh /CodeAnalysis/scripts/config.sh
57+
source /etc/tca/config.sh
5558
fi
5659

5760
if [ ! -f "/etc/tca/client/config.ini" ]; then

0 commit comments

Comments
 (0)