use-git yunohost-admin: always update VUE_APP_IP

This commit is contained in:
Alexandre Aubin 2021-10-20 12:50:35 +02:00
parent b0d6fe5ca0
commit ee4d6b3cac

View file

@ -275,14 +275,11 @@ function use_git()
} }
cd /var/cache/ynh-dev/yunohost-admin/ cd /var/cache/ynh-dev/yunohost-admin/
# Create .env file with the vm ip # Create .env file with the vm ip
# Will be used by webpack-dev-server to proxy api requests. # Will be used by webpack-dev-server to proxy api requests.
if [[ ! -e .env ]] IP=$(hostname -I | tr ' ' '\n' | grep "\.")
then echo "VUE_APP_IP=$IP" > .env
info "Creating .env file"
IP=$(hostname -I | tr ' ' '\n' | grep "\.")
echo "VUE_APP_IP=$IP" > .env
fi
# Allow port 8080 in config file or else the dev server will stop working after postinstall # Allow port 8080 in config file or else the dev server will stop working after postinstall
if [[ ! -e /etc/yunohost/installed ]] if [[ ! -e /etc/yunohost/installed ]]