fix install script

This commit is contained in:
wh1te909 2020-06-06 19:20:35 +00:00
parent 9824be12f8
commit d14bfa758d
1 changed files with 7 additions and 4 deletions

View File

@ -590,12 +590,15 @@ sudo certbot certonly --standalone --agree-tos -m ${letsemail} --no-eff-email -d
sudo chown -R $USER:$GROUP /home/${USER}/.npm
sudo chown -R $USER:$GROUP /home/${USER}/.config
vueconf="$(cat << EOF
VUE_APP_PROD_URL = "https://${rmmdomain}"
VUE_APP_DEV_URL = "http://localhost:8000"
quasarenv="$(cat << EOF
PROD_URL = "https://${rmmdomain}"
DEV_URL = "https://api.example.com"
APP_URL = "https://app.example.com"
DEV_HOST = 0.0.0.0
DEV_PORT = 80
EOF
)"
echo "${vueconf}" | tee /home/${USER}/rmm/web/.env.local > /dev/null
echo "${quasarenv}" | tee /home/${USER}/rmm/web/.env > /dev/null
print_green 'Installing the frontend'