Skip to content

Commit 6302c15

Browse files
authored
Merge pull request hestiacp#2291 from jaapmarcus/fix/set-default-port-installers
Fix issue hestiacp#2288 Port not set properly on install in hestia.conf
2 parents ca0449d + 914b8e1 commit 6302c15

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

install/hst-install-debian.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ set_default_lang() {
145145
set_default_port() {
146146
if [ -z "$port" ]; then
147147
eval port=$1
148-
echo "BACKEND_PORT='$port'" >> $HESTIA/conf/hestia.conf
149148
fi
150149
}
151150

@@ -1084,6 +1083,9 @@ rm -f $HESTIA/conf/hestia.conf > /dev/null 2>&1
10841083
touch $HESTIA/conf/hestia.conf
10851084
chmod 660 $HESTIA/conf/hestia.conf
10861085

1086+
# write default value to hesita.conf will get overwritten if changed
1087+
write_config_value "BACKEND_PORT" "8083"
1088+
10871089
# Web stack
10881090
if [ "$apache" = 'yes' ]; then
10891091
write_config_value "WEB_SYSTEM" "apache2"

install/hst-install-ubuntu.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ set_default_lang() {
126126
set_default_port() {
127127
if [ -z "$port" ]; then
128128
eval port=$1
129-
echo "BACKEND_PORT='$port'" >> $HESTIA/conf/hestia.conf
130129
fi
131130
}
132131

@@ -248,6 +247,9 @@ while getopts "a:w:v:j:k:m:g:d:x:z:Z:c:t:i:b:r:o:q:l:y:s:e:p:D:fh" Option; do
248247
esac
249248
done
250249

250+
# write default value to hesita.conf will get overwritten if changed
251+
write_config_value "BACKEND_PORT" "8083"
252+
251253
# Defining default software stack
252254
set_default_value 'nginx' 'yes'
253255
set_default_value 'apache' 'yes'

0 commit comments

Comments
 (0)