updated install script

This commit is contained in:
Andris Reinman 2018-01-23 14:19:30 +02:00
parent f052b7adaa
commit ed1eafdca0

View file

@ -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