From ee4d6b3cacd84689aae32e4cbb39b35b651b8749 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 20 Oct 2021 12:50:35 +0200 Subject: [PATCH] use-git yunohost-admin: always update VUE_APP_IP --- ynh-dev | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ynh-dev b/ynh-dev index b37454d..c931fec 100755 --- a/ynh-dev +++ b/ynh-dev @@ -275,14 +275,11 @@ function use_git() } cd /var/cache/ynh-dev/yunohost-admin/ + # Create .env file with the vm ip # Will be used by webpack-dev-server to proxy api requests. - if [[ ! -e .env ]] - then - info "Creating .env file" - IP=$(hostname -I | tr ' ' '\n' | grep "\.") - echo "VUE_APP_IP=$IP" > .env - fi + IP=$(hostname -I | tr ' ' '\n' | grep "\.") + echo "VUE_APP_IP=$IP" > .env # Allow port 8080 in config file or else the dev server will stop working after postinstall if [[ ! -e /etc/yunohost/installed ]]