Skip to content

Commit c6f3045

Browse files
committed
Extend enable/disable api function.
1 parent 7baf461 commit c6f3045

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

install/hst-install-debian.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,9 +1313,11 @@ fi
13131313
# Configure API #
13141314
#----------------------------------------------------------#
13151315

1316-
if [ "$api" = 'no' ]; then
1317-
rm -r $HESTIA/web/api
1316+
if [ "$api" = 'yes' ]; then
13181317
echo "API='no'" >> $HESTIA/conf/hestia.conf
1318+
else
1319+
rm -r $HESTIA/web/api
1320+
echo "API='yes'" >> $HESTIA/conf/hestia.conf
13191321
fi
13201322

13211323

install/hst-install-ubuntu.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,9 +1285,11 @@ fi
12851285
# Configure API #
12861286
#----------------------------------------------------------#
12871287

1288-
if [ "$api" = 'no' ]; then
1289-
rm -r $HESTIA/web/api
1288+
if [ "$api" = 'yes' ]; then
12901289
echo "API='no'" >> $HESTIA/conf/hestia.conf
1290+
else
1291+
rm -r $HESTIA/web/api
1292+
echo "API='yes'" >> $HESTIA/conf/hestia.conf
12911293
fi
12921294

12931295

0 commit comments

Comments
 (0)