Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 17f9dbe

Browse files
committed
not overwrite token if exists
1 parent faf7195 commit 17f9dbe

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#! /bin/bash
22
rm -rf /root/deployment/auto_pilot
33

4-
cp -f /root/config/online_review/build.properties.docker /root/online_review/build.properties
5-
cp -f /root/config/online_review/token.properties.docker /root/online_review/token.properties
4+
cp -n /root/config/online_review/build.properties.docker /root/online_review/build.properties
5+
cp -n /root/config/online_review/token.properties.docker /root/online_review/token.properties
66

7-
cp -f /root/config/auto_pilot/build.properties.docker /root/online_review/scripts/auto_pilot/build.properties
7+
cp -n /root/config/auto_pilot/build.properties.docker /root/online_review/scripts/auto_pilot/build.properties
88

99
cd /root/online_review/scripts/auto_pilot
1010
ant clean dist deploy

docker/online_review/docker/build/scripts/build-online-review.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#! /bin/bash
22
rm -rf /root/deployment/jboss-4.0.2
33

4-
cp -f /root/config/online_review/build.properties.docker /root/online_review/build.properties
5-
cp -f /root/config/online_review/token.properties.docker /root/online_review/token.properties
4+
cp -n /root/config/online_review/build.properties.docker /root/online_review/build.properties
5+
cp -n /root/config/online_review/token.properties.docker /root/online_review/token.properties
66

77
cd /root/deployment
88
tar xzf /root/jboss-4.0.2.tar.gz

0 commit comments

Comments
 (0)