Fixed some bugs in subscription process
Added timezone selector to campaign scheduling Fixed problems with pausing campaign.
This commit is contained in:
parent
4113cb8476
commit
e3a5a3c4eb
23 changed files with 218 additions and 99 deletions
|
@ -456,3 +456,45 @@ function deleteAllModules {
|
|||
}
|
||||
|
||||
|
||||
function setupTest {
|
||||
mysqlPassword=`pwgen 12 -1`
|
||||
|
||||
# Setup MySQL user for Mailtrain
|
||||
mysql -u root -e "CREATE USER 'mailtrain_test'@'localhost' IDENTIFIED BY '$mysqlPassword';"
|
||||
mysql -u root -e "GRANT ALL PRIVILEGES ON mailtrain_test.* TO 'mailtrain_test'@'localhost';"
|
||||
mysql -u mailtrain_test --password="$mysqlPassword" -e "CREATE database mailtrain_test;"
|
||||
|
||||
# Setup installation configuration
|
||||
cat > server/config/test.yaml <<EOT
|
||||
mysql:
|
||||
user: mailtrain_test
|
||||
password: "$mysqlPassword"
|
||||
database: mailtrain_test
|
||||
|
||||
redis:
|
||||
enabled: true
|
||||
|
||||
log:
|
||||
level: info
|
||||
|
||||
builtinZoneMTA:
|
||||
log:
|
||||
level: warn
|
||||
|
||||
queue:
|
||||
processes: 5
|
||||
|
||||
testServer:
|
||||
enabled: true
|
||||
EOT
|
||||
|
||||
cat >> server/services/workers/reports/config/test.yaml <<EOT
|
||||
log:
|
||||
level: warn
|
||||
|
||||
mysql:
|
||||
user: mailtrain_test
|
||||
password: "$mysqlPassword"
|
||||
database: mailtrain_test
|
||||
EOT
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue