Skip to content

Commit a05eba3

Browse files
committed
Update build
1 parent fa4f525 commit a05eba3

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

script/build

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,12 @@ build_bc_gateway() {
118118
cp requirements.txt "$BUILD_DIR/bc_gateway"
119119
cd "$BUILD_DIR"/bc_gateway
120120

121-
# Prepare symlink
122-
local tmp_dir="$(mktemp -d)"
123-
ln -s "$GATEWAY_DEST_DIR"/bc-gateway.py "$tmp_dir"/bc-gateway
124-
125121
replace_placeholders *.py
126122
chmod +x gateway.py
127123

124+
# Prepare symlink
125+
ln -s "$GATEWAY_DEST_DIR"/bc-gateway.py bc-gateway
126+
128127
_fpm --name bc-gateway \
129128
--depends bc-common \
130129
$(python_depends) \
@@ -134,9 +133,8 @@ build_bc_gateway() {
134133
gateway.py="$GATEWAY_DEST_DIR/bc-gateway.py" \
135134
bc-gateway.yml=etc/bigclown/bc-gateway.yml \
136135
bc-gateway-acm0.yml=etc/bigclown/bc-gateway-acm0.yml \
137-
"$tmp_dir/bc-gateway"=/usr/bin
136+
bc-gateway=/usr/bin/
138137

139-
rm -Rf "$tmp_dir"
140138
cd - >/dev/null
141139
}
142140

0 commit comments

Comments
 (0)