Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Limesurvey_cloudron
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
C1t1z3n 0n3
Limesurvey_cloudron
Commits
1743aa0f
Commit
1743aa0f
authored
Apr 16, 2018
by
Johannes Zellner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable sendmail support
parent
cc6ba094
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
CloudronManifest.json
CloudronManifest.json
+2
-1
start.sh
start.sh
+10
-1
No files found.
CloudronManifest.json
View file @
1743aa0f
...
...
@@ -19,7 +19,8 @@
"postInstallMessage"
:
"file://POSTINSTALL.md"
,
"addons"
:
{
"mysql"
:
{},
"localstorage"
:
{}
"localstorage"
:
{},
"sendmail"
:
{}
},
"mediaLinks"
:
[
],
...
...
start.sh
View file @
1743aa0f
...
...
@@ -2,6 +2,8 @@
set
-eu
mysql
=
"mysql --user=
${
MYSQL_USERNAME
}
--password=
${
MYSQL_PASSWORD
}
--host=
${
MYSQL_HOST
}
${
MYSQL_DATABASE
}
"
# Do not use tmp directly due to tmpreaper removeing built assets
mkdir
-p
/run/sessions /run/tmp/runtime /run/tmp/assets /run/tmp/upload
chown
-R
www-data.www-data /run
...
...
@@ -19,7 +21,7 @@ fi
echo
"==> Ensure folders"
# It is not exactly clear why the app does not create those subfolders and we might miss some here
mkdir
-p
/app/data/upload /app/code/upload/admintheme /app/code/upload/themes/survey/generalfiles
mkdir
-p
/app/data/upload /app/code/upload/
surveys /app/code/upload/
admintheme /app/code/upload/themes/survey/generalfiles
echo
"==> Ensure permissions"
chown
-R
www-data.www-data /app/data /run
...
...
@@ -27,6 +29,13 @@ chown -R www-data.www-data /app/data /run
echo
"==> Run database schema update"
sudo
-u
www-data php /app/code/application/commands/console.php updatedb
echo
"==> Configure email"
$mysql
-e
"INSERT INTO lime_settings_global (stg_name, stg_value) VALUES ('emailmethod', 'smtp') ON DUPLICATE KEY UPDATE stg_value='smtp';"
$mysql
-e
"INSERT INTO lime_settings_global (stg_name, stg_value) VALUES ('emailsmtpssl', 'tls') ON DUPLICATE KEY UPDATE stg_value='tls';"
$mysql
-e
"INSERT INTO lime_settings_global (stg_name, stg_value) VALUES ('emailsmtphost', '
${
MAIL_SMTP_SERVER
}
:
${
MAIL_SMTPS_PORT
}
') ON DUPLICATE KEY UPDATE stg_value='
${
MAIL_SMTP_SERVER
}
:
${
MAIL_SMTPS_PORT
}
';"
$mysql
-e
"INSERT INTO lime_settings_global (stg_name, stg_value) VALUES ('emailsmtpuser', '
${
MAIL_SMTP_USERNAME
}
') ON DUPLICATE KEY UPDATE stg_value='
${
MAIL_SMTP_USERNAME
}
';"
$mysql
-e
"INSERT INTO lime_settings_global (stg_name, stg_value) VALUES ('emailsmtppassword', '
${
MAIL_SMTP_PASSWORD
}
') ON DUPLICATE KEY UPDATE stg_value='
${
MAIL_SMTP_PASSWORD
}
';"
echo
"==> Start apache"
APACHE_CONFDIR
=
""
source
/etc/apache2/envvars
rm
-f
"
${
APACHE_PID_FILE
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment