mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-12-29 11:46:30 +08:00
updated install script
This commit is contained in:
parent
f052b7adaa
commit
ed1eafdca0
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue