Skip to content

Commit d098fa1

Browse files
committed
(fix): Typo in system-site-packages; Clearer display
1 parent 67b1da2 commit d098fa1

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

lib/install_shared.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ function prepare_config() {
166166
function setup_python() {
167167
print_message "Setting up python venv"
168168
if [[ $use_system_site_packages == true ]] ; then
169-
python3 -m venv venv --system_site_packages
169+
python3 -m venv venv --system-site-packages
170170
else
171171
python3 -m venv venv
172172
fi
@@ -316,14 +316,17 @@ while getopts "p:a:m:nhtbisyrlc:k:" o; do
316316
done
317317

318318
if [[ $ask_ssl == true ]] ; then
319+
echo ""
319320
read -p "Do you want to enable SSL for the API and frontend? (y/N) : " enable_ssl_input
320321
if [[ "$enable_ssl_input" == "Y" || "$enable_ssl_input" == "y" ]] ; then
321322
enable_ssl=true
322323
if [[ -z $cert_key ]]; then
324+
echo ""
323325
read -p "Please type your file where your key is located. For instance /home/me/key.pem : " cert_key
324326
fi
325327
cp $cert_key docker/nginx/ssl/production.key
326328
if [[ -z $cert_file ]]; then
329+
echo ""
327330
read -p "Please type your file where your certificate is located. For instance /home/me/cert.crt : " cert_file
328331
fi
329332
cp $cert_file docker/nginx/ssl/production.crt
@@ -334,12 +337,16 @@ fi
334337

335338

336339
if [[ -z $api_url ]] ; then
337-
read -p "Please enter the desired API endpoint URL: (default: http://api.green-coding.internal:9142): " api_url
340+
echo ""
341+
echo "Please enter the desired API endpoint URL"
342+
read -p "Use port 9142 for local installs and no port for production to auto-use 80/443: (default: http://api.green-coding.internal:9142): " api_url
338343
api_url=${api_url:-"http://api.green-coding.internal:9142"}
339344
fi
340345

341346
if [[ -z $metrics_url ]] ; then
342-
read -p "Please enter the desired metrics dashboard URL: (default: http://metrics.green-coding.internal:9142): " metrics_url
347+
echo ""
348+
echo "Please enter the desired metrics dashboard URL"
349+
read -p "Use port 9142 for local installs and no port for production to auto-use 80/443: (default: http://metrics.green-coding.internal:9142): " metrics_url
343350
metrics_url=${metrics_url:-"http://metrics.green-coding.internal:9142"}
344351
fi
345352

@@ -351,6 +358,7 @@ fi
351358
default_password=${password_from_file:-$(generate_random_password 12)}
352359

353360
if [[ -z "$db_pw" ]] ; then
361+
echo ""
354362
read -sp "Please enter the new password to be set for the PostgreSQL DB (default: $default_password): " db_pw
355363
echo "" # force a newline, because read -sp will consume it
356364
db_pw=${db_pw:-"$default_password"}

0 commit comments

Comments
 (0)