From ed1eafdca0f15b41477c7a35ae08c1d66f36c716 Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Tue, 23 Jan 2018 14:19:30 +0200 Subject: [PATCH] updated install script --- setup/install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup/install.sh b/setup/install.sh index d91b8337..8760974b 100755 --- a/setup/install.sh +++ b/setup/install.sh @@ -466,11 +466,14 @@ cp /opt/wildduck-webmail/config/default.toml /etc/wildduck/wildduck-webmail.toml sed -i -e "s/localhost/$HOSTNAME/g;s/999/99/g;s/2587/587/g;s/proxy=false/proxy=true/g" /etc/wildduck/wildduck-webmail.toml cd /opt/wildduck-webmail -npm install --unsafe-perm --production chown -R deploy:deploy /var/opt/wildduck-webmail.git chown -R deploy:deploy /opt/wildduck-webmail +# we need to run bower which reject root +HOME=/home/deploy sudo -u deploy npm install +HOME=/home/deploy sudo -u deploy npm run bowerdeps + echo '[Unit] Description=Wildduck Webmail After=wildduck.service