only if exists

This commit is contained in:
wh1te909
2022-05-15 06:59:00 +00:00
parent a941bb1744
commit 94f02bfca3

View File

@@ -713,8 +713,13 @@ echo "${meshservice}" | sudo tee /etc/systemd/system/meshcentral.service > /dev/
sudo systemctl daemon-reload
sudo chown -R $USER:$GROUP /home/${USER}/.npm
sudo chown -R $USER:$GROUP /home/${USER}/.config
if [ -d ~/.npm ]; then
sudo chown -R $USER:$GROUP ~/.npm
fi
if [ -d ~/.config ]; then
sudo chown -R $USER:$GROUP ~/.config
fi
quasarenv="$(cat << EOF
PROD_URL = "https://${rmmdomain}"