From 1f484280327d1bfded63309bca7c7d2a31844f89 Mon Sep 17 00:00:00 2001 From: Felix Mumme Date: Mon, 23 Dec 2024 00:56:37 +0100 Subject: [PATCH] restart nginx --- installation/install-openems.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/installation/install-openems.sh b/installation/install-openems.sh index af9d372..36ec722 100644 --- a/installation/install-openems.sh +++ b/installation/install-openems.sh @@ -48,7 +48,7 @@ wget -O /etc/systemd/system/openems.service https://git.mumme-it.de/Mumme-IT/ope sudo mkdir -p /etc/openems.d #fetch openems jar -wget -O /usr/lib/openems/openems.jar https://git.mumme-it.de/Mumme-IT/openems-build/raw/branch/main/latest/openems-edge.jar +wget -O /usr/lib/openems/openems.jar https://git.mumme-it.de/Mumme-IT/openems-build/raw/branch/main/build/latest/openems-edge.jar # reload systemd and start service sudo systemctl daemon-reload @@ -61,7 +61,7 @@ echo -e "${GREEN}setting up ui as default nginx site...${NC}" sudo mkdir -p /var/www/openems/html -wget -O ~/openems-ui.zip https://git.mumme-it.de/Mumme-IT/openems-build/raw/branch/main/latest/ui.zip +wget -O ~/openems-ui.zip https://git.mumme-it.de/Mumme-IT/openems-build/raw/main/build/latest/ui.zip sudo unzip -o ~/openems-ui.zip -d /var/www/openems/html sudo rm ~/openems-ui.zip @@ -73,4 +73,6 @@ if $ui_default; then sudo ln -sf /etc/nginx/sites-available/openems /etc/nginx/sites-enabled/default fi +sudo service nginx restart + echo -e "${GREEN}done${NC}"