This commit is contained in:
Darren 2023-09-28 09:25:04 +08:00 committed by GitHub
parent d1d7ba15ad
commit 28c8bdb6a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View file

@ -9,7 +9,7 @@ set -e
container_name="websoft9-apphub"
# 最大尝试次数
max_attempts=60
max_attempts=6
# 获取容器的内网IP
attempt=0
@ -21,7 +21,7 @@ while [ $attempt -lt $max_attempts ]; do
fi
attempt=$(( $attempt + 1 ))
sleep 1
sleep 5
done
# 检查获取IP是否成功

View file

@ -1,6 +1,4 @@
#!/bin/bash
# 在这个脚本中,我们将运行两个脚本
/bin/bash send_credentials.sh
/bin/bash set_hosts.sh
tail -f /dev/null
/bin/bash set_hosts.sh

View file

@ -1,15 +1,17 @@
[Unit]
Description=Websoft9 PaaS Platform
Description=Websoft9 Linux AppStore
Requires=network.target docker
After=network.target docker
[Service]
WorkingDirectory=/opt/websoft9/systemd
ExecStart=/bin/bash /opt/websoft9/systemd/start_up.sh
Restart=always
Restart=on-failure
Type=simple
NotifyAccess=all
StandardError=syslog
User=root
Group=root
[Install]
WantedBy=multi-user.target