Skip to content

Commit 9610cfa

Browse files
committed
1 parent 0d3fe86 commit 9610cfa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/resources/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22
export LANG='en_US.UTF-8'
3-
java -Dloader.path='.' -jar ./sql-boot.jar
3+
java -Dloader.path='.' -Dspring.config.location=/etc/sql-boot/conf/$1/application.yml -jar ./sql-boot.jar
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ After=syslog.target
55
[Service]
66
User=root
77
WorkingDirectory=/opt/sql-boot
8-
ExecStart=/bin/bash /opt/sql-boot/run
8+
ExecStart=/bin/bash /opt/sql-boot/run %i
99
SuccessExitStatus=143
1010
TimeoutStopSec=10
1111
Restart=on-failure

0 commit comments

Comments
 (0)