Pierre de La Morinerie
331fcce8c5
conf: use a Type=notify systemd service
...
Starting from Mattermost 4.8, the server process sends a systemd
notification when it is ready to accept network connections. Thus we
don't need to explicitely wait for the port to be open in the service.
As a bonus, by removing the hack, we don't need to replace `__PORT__` in
the service anymore–which means the associated script helper can be
removed too.
2018-03-16 18:37:17 +05:30
Pierre de La Morinerie
cad4712038
upgrade: attempt to restore backup only if it was correctly saved
2018-02-05 10:37:42 +05:30
Pierre de La Morinerie
3c9e53fe57
scripts: rename smtp_user
to mattermost_user
2018-01-31 11:42:52 +05:30
Pierre de La Morinerie
256cafcb07
scripts: support multi-instance install
2018-01-31 11:42:52 +05:30
Pierre de La Morinerie
0918978e92
scripts: handle port in use
2018-01-31 11:42:52 +05:30
Pierre de La Morinerie
aa7721322d
scripts: modernize the publix/private switch
...
This allow package_check to properly test it.
2018-01-31 11:42:52 +05:30
Pierre de La Morinerie
d2566887a8
upgrade: use app.src
2017-10-23 12:22:40 +05:30
Pierre de La Morinerie
b4f05f6449
scripts: move logs to a subdirectory of /var/log
...
This allows to give permission to the `mattermost` user to
write new files in this subdirectory, which is needed for
log rotation.
Fix #61
2017-10-17 10:36:25 +05:30
Pierre de La Morinerie
d79c4fcfe4
scripts: advertise service in admin panel
2017-10-16 09:14:20 +05:30
Pierre de La Morinerie
e8c51d4715
scripts: use systemd rather than supervisor
...
Systemd is now the standard way of doing services in
Yunohost. It also avoids to install an extra dependency.
Fix #43
2017-10-16 09:05:21 +05:30
Pierre de La Morinerie
faa51975af
upgrade: backup before upgrading, and restore backup on failure
2017-10-12 12:27:09 +05:30
Pierre de La Morinerie
ee7b6a1522
upgrade: improve comments
2017-10-12 12:27:09 +05:30
Pierre de La Morinerie
f781efb160
scripts: use ynh_add_nginx_config
helper
2017-10-12 12:27:09 +05:30
Pierre de La Morinerie
cc846f64b4
Fix logs location
...
The log location used to be a filename, but it is now a
path since Mattermost 3.8.
Having a path was tolerated in Mattermost <= 4.1, but crashes
the server starting from Mattermost 4.2.0.
2017-10-10 17:04:43 +05:30
Pierre de La Morinerie
ebaea2dbda
scripts: use ynh_abort_if_errors
helper
2017-10-10 16:36:28 +05:30
Pierre de La Morinerie
752b049866
upgrade: don’t warn when the archive file doesn’t exist
2017-09-12 15:30:38 +05:30
Pierre de La Morinerie
ca8a3c761d
upgrade: stop the server after downloading the new release
...
This will minimize downtime.
2017-09-12 15:30:38 +05:30
Pierre de La Morinerie
ff4f8ba8fd
upgrade: fix syntax error in the die_command
variable
2017-09-12 15:30:38 +05:30
Pierre de La Morinerie
cb0d4ddc75
scripts: modernize and fix linter warnings
2017-09-11 12:53:22 +05:30
Pierre de La Morinerie
30ed4e710e
scripts: exit on unbound variables
...
Fixes a package_linter warning.
2017-09-11 12:53:22 +05:30
kemenaran
aaec1ec07c
Update nginx configuration file on upgrade
2017-07-21 22:08:33 +02:00
Pierre de La Morinerie
ed8d078d8e
Use the new Mattermost download URL
2016-04-17 18:35:42 +02:00
Pierre de La Morinerie
60a0e984f5
Fix upgrade script failure handler
2016-04-17 18:03:21 +02:00
Pierre de La Morinerie
a317cb77f8
Add upgrade script
2015-11-18 17:24:09 +01:00