Additions to the install scripts
This commit is contained in:
parent
540c9044ae
commit
20028303f8
3 changed files with 5 additions and 9 deletions
|
@ -48,8 +48,7 @@ firewall-cmd --reload
|
||||||
# Fetch Mailtrain files
|
# Fetch Mailtrain files
|
||||||
mkdir -p /opt/mailtrain
|
mkdir -p /opt/mailtrain
|
||||||
cd /opt/mailtrain
|
cd /opt/mailtrain
|
||||||
#git clone git://github.com/Mailtrain-org/mailtrain.git .
|
git clone git://github.com/Mailtrain-org/mailtrain.git .
|
||||||
git clone git://github.com/bures/mailtrain.git .
|
|
||||||
|
|
||||||
# Normally we would let Mailtrain itself to import the initial SQL data but in this case
|
# Normally we would let Mailtrain itself to import the initial SQL data but in this case
|
||||||
# we need to modify it, before we start Mailtrain
|
# we need to modify it, before we start Mailtrain
|
||||||
|
@ -77,6 +76,8 @@ useradd zone-mta || true
|
||||||
cat >> config/production.toml <<EOT
|
cat >> config/production.toml <<EOT
|
||||||
user="mailtrain"
|
user="mailtrain"
|
||||||
group="mailtrain"
|
group="mailtrain"
|
||||||
|
rouser="nobody"
|
||||||
|
rogroup="nobody"
|
||||||
[log]
|
[log]
|
||||||
level="error"
|
level="error"
|
||||||
[www]
|
[www]
|
||||||
|
@ -103,6 +104,7 @@ EOT
|
||||||
# Install required node packages
|
# Install required node packages
|
||||||
npm install --no-progress --production
|
npm install --no-progress --production
|
||||||
chown -R mailtrain:mailtrain .
|
chown -R mailtrain:mailtrain .
|
||||||
|
chmod o-rwx config
|
||||||
|
|
||||||
# Setup log rotation to not spend up entire storage on logs
|
# Setup log rotation to not spend up entire storage on logs
|
||||||
cat <<EOM > /etc/logrotate.d/mailtrain
|
cat <<EOM > /etc/logrotate.d/mailtrain
|
||||||
|
|
|
@ -101,6 +101,7 @@ EOT
|
||||||
# Install required node packages
|
# Install required node packages
|
||||||
npm install --no-progress --production
|
npm install --no-progress --production
|
||||||
chown -R mailtrain:mailtrain .
|
chown -R mailtrain:mailtrain .
|
||||||
|
chmod o-rwx config
|
||||||
|
|
||||||
# Setup log rotation to not spend up entire storage on logs
|
# Setup log rotation to not spend up entire storage on logs
|
||||||
cat <<EOM > /etc/logrotate.d/mailtrain
|
cat <<EOM > /etc/logrotate.d/mailtrain
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
[log]
|
|
||||||
level="verbose"
|
|
||||||
|
|
||||||
[mysql]
|
|
||||||
user="mailtrain_ro"
|
|
||||||
password="S6Woc9hwWiV9RsWt"
|
|
||||||
|
|
Loading…
Reference in a new issue