From 71a2e3cfcac418fd3a8ef02939a56b0474ae10c7 Mon Sep 17 00:00:00 2001 From: wh1te909 <7434746+wh1te909@users.noreply.github.com> Date: Mon, 30 Sep 2024 19:27:14 +0000 Subject: [PATCH] remove extra mgmt cmd --- restore.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/restore.sh b/restore.sh index e48157ea..ffb1cc14 100755 --- a/restore.sh +++ b/restore.sh @@ -494,7 +494,6 @@ echo "Running management commands...please wait..." API=$(python manage.py get_config api) WEB_VERSION=$(python manage.py get_config webversion) FRONTEND=$(python manage.py get_config webdomain) -webdomain=$(python manage.py get_config webdomain) meshdomain=$(python manage.py get_config meshdomain) WEBTAR_URL=$(python manage.py get_webtar_url) CERT_PUB_KEY=$(python manage.py get_config certfile) @@ -620,9 +619,9 @@ sudo ln -s /etc/nginx/sites-available/rmm.conf /etc/nginx/sites-enabled/rmm.conf HAS_11=$(grep 127.0.1.1 /etc/hosts) if [[ $HAS_11 ]]; then - sudo sed -i "/127.0.1.1/s/$/ ${API} ${webdomain} ${meshdomain}/" /etc/hosts + sudo sed -i "/127.0.1.1/s/$/ ${API} ${FRONTEND} ${meshdomain}/" /etc/hosts else - echo "127.0.1.1 ${API} ${webdomain} ${meshdomain}" | sudo tee --append /etc/hosts >/dev/null + echo "127.0.1.1 ${API} ${FRONTEND} ${meshdomain}" | sudo tee --append /etc/hosts >/dev/null fi sudo systemctl enable nats.service