diff --git a/install/booklore-install.sh b/install/booklore-install.sh index 1fd49cf6e..a264ca384 100644 --- a/install/booklore-install.sh +++ b/install/booklore-install.sh @@ -51,6 +51,7 @@ cat </opt/booklore_storage/.env DATABASE_URL=jdbc:mariadb://localhost:3306/$DB_NAME DATABASE_USERNAME=$DB_USER DATABASE_PASSWORD=$DB_PASS +BOOKLORE_PORT=6060 BOOKLORE_DATA_PATH=/opt/booklore_storage/data BOOKLORE_BOOKS_PATH=/opt/booklore_storage/books @@ -75,6 +76,7 @@ msg_info "Configure Nginx" rm -rf /usr/share/nginx/html ln -s /opt/booklore/booklore-ui/dist/booklore/browser /usr/share/nginx/html cp /opt/booklore/nginx.conf /etc/nginx/nginx.conf +sed -i "s/listen \${BOOKLORE_PORT};/listen 6060;/" /etc/nginx/nginx.conf systemctl restart nginx msg_ok "Configured Nginx"