Skip to content

Commit 6ab6045

Browse files
committed
dynamic version
1 parent 49daf67 commit 6ab6045

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

install

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ export DEBIAN_FRONTEND=noninteractive
66
############################################
77

88
dir=$PWD
9-
source ./nodebb_version.sh
10-
if [ ! -d "/opt/nodebb/v$node_version" ]; then
9+
source "$dir/nodebb_version.sh"
10+
if [ ! -d "/opt/nodebb/v$nodebb_version" ]; then
1111

12-
mkdir -p /opt/nodebb/v$node_version
13-
cd /opt/nodebb/v$node_version
14-
git clone -b v$node_version https://github.com/NodeBB/NodeBB.git nodebb
12+
mkdir -p "/opt/nodebb/v$nodebb_version"
13+
cd "/opt/nodebb/v$nodebb_version"
14+
git clone -b "v$nodebb_version" https://github.com/NodeBB/NodeBB.git nodebb
1515
cd nodebb
1616
rm -rf .git
1717
rm -rf .gitignore
@@ -20,7 +20,7 @@ if [ ! -d "/opt/nodebb/v$node_version" ]; then
2020
fi
2121

2222
# Copy over our Quick Install App
23-
cd $dir
23+
cd "$dir"
2424
rsync -r ./Installers/ /usr/local/hestia/web/src/app/WebApp/Installers/
2525

2626
# Notify installation has finished

0 commit comments

Comments
 (0)