Skip to content

Commit 8091b6d

Browse files
committed
Fix directory path in hestia package compilation.
1 parent fc95e89 commit 8091b6d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/hst_autocompile.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ if [ "$HESTIA_B" = true ] ; then
272272

273273
# Download and unpack source files
274274
wget $HESTIA
275-
unzip -q master.zip
276-
rm master.zip
275+
unzip -q $branch.zip
276+
rm $branch.zip
277277

278278
# Prepare Deb Package Folder Structure
279279
cd hestia_$HESTIA_V/
@@ -289,7 +289,7 @@ if [ "$HESTIA_B" = true ] ; then
289289
chmod +x postinst
290290

291291
# Move needed directories
292-
cd ../../hestiacp-master
292+
cd ../../hestiacp-$branch
293293
mv bin func install upd web ../hestia_$HESTIA_V/usr/local/hestia/
294294

295295
# Set permission
@@ -303,7 +303,7 @@ if [ "$HESTIA_B" = true ] ; then
303303

304304
# clear up the source folder
305305
rm -r hestia_$HESTIA_V
306-
rm -r hestiacp-master
306+
rm -r hestiacp-$branch
307307
fi
308308

309309

0 commit comments

Comments
 (0)