1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mattermost_ynh.git synced 2024-09-03 19:36:29 +02:00
Commit graph

223 commits

Author SHA1 Message Date
ericgaspar
d38e528d5f Fix 2022-09-27 20:49:39 +02:00
ericgaspar
d70b9af3bb Update _common.sh 2022-09-27 16:55:54 +02:00
ericgaspar
e75e12e370 Fix 2022-09-27 16:53:38 +02:00
ericgaspar
9b31c26db6 Fix 2022-09-27 15:00:45 +02:00
ericgaspar
597719c5ae Cleaning 2022-09-27 14:49:41 +02:00
Éric Gaspar
d5a6ac801a
Revert "Update _common.sh"
This reverts commit d880150af9.
2022-08-06 23:01:47 +02:00
Éric Gaspar
d880150af9
Update _common.sh 2022-08-06 22:59:54 +02:00
Éric Gaspar
c580c83f2f
Update upgrade 2022-06-29 14:58:03 +02:00
Éric Gaspar
e302678944
Update upgrade 2022-06-29 14:55:29 +02:00
Éric Gaspar
f9f062acea
Fix 2022-06-29 12:23:12 +02:00
Éric Gaspar
bfd0f9110d
Fix 2022-06-29 12:10:55 +02:00
Éric Gaspar
7367e0675d
Update backup 2022-06-29 12:09:28 +02:00
Éric Gaspar
715d96c807
Update upgrade 2022-06-29 12:07:54 +02:00
Éric Gaspar
d64d2c4520
Update _common.sh 2022-06-29 12:04:05 +02:00
Éric Gaspar
c2f558daed
Update upgrade 2022-06-29 11:58:06 +02:00
Éric Gaspar
a07b5b6646
Fix 2022-06-29 11:57:39 +02:00
Éric Gaspar
4e569aeece
Update _common.sh 2022-06-29 10:29:17 +02:00
Éric Gaspar
c65dbfa3e8
Cleaning 2022-06-29 00:30:55 +02:00
Éric Gaspar
359760f300
Update upgrade 2022-06-29 00:25:46 +02:00
Éric Gaspar
2d4ae568ff
Fix 2022-06-29 00:23:42 +02:00
Éric Gaspar
4d15d6887e
Update _common.sh 2022-06-29 00:11:23 +02:00
Éric Gaspar
c65f4059ef
Update _common.sh 2022-06-28 23:18:11 +02:00
Éric Gaspar
9f3e0bf88a
Update upgrade 2022-06-28 23:16:47 +02:00
Éric Gaspar
4bc993c0b3
Cleaning up 2022-06-28 23:16:08 +02:00
Éric Gaspar
8d33e09c0a
Update upgrade 2022-06-28 23:13:40 +02:00
Éric Gaspar
d4cc76f91c
Fix 2022-06-28 23:12:39 +02:00
Éric Gaspar
05b817c6b6
Fix 2022-06-28 23:08:13 +02:00
Éric Gaspar
c0be550b10
Fix 2022-06-28 23:01:32 +02:00
Éric Gaspar
780ff41bc8
Update install 2022-06-26 12:42:20 +02:00
Éric Gaspar
4a655186b5
Update upgrade 2022-06-26 12:28:52 +02:00
Éric Gaspar
d6a095f247
Update upgrade 2022-06-26 12:27:29 +02:00
Éric Gaspar
b08bc0d1d7
Update upgrade 2022-06-26 12:20:35 +02:00
Éric Gaspar
7c57b478dc
Update upgrade 2022-06-26 12:20:08 +02:00
Éric Gaspar
069bc0c34d
Update upgrade 2022-06-26 12:16:00 +02:00
Éric Gaspar
d5e10029b4
Update upgrade 2022-06-26 12:08:18 +02:00
Éric Gaspar
3707e0706b
Update upgrade 2022-06-26 12:03:36 +02:00
Éric Gaspar
d90fbdef15
Update upgrade 2022-06-26 11:39:02 +02:00
Éric Gaspar
5070cde211
Update upgrade 2022-06-26 11:32:05 +02:00
Éric Gaspar
efd0f93ff4
Update upgrade 2022-06-26 11:31:01 +02:00
Éric Gaspar
a090696fa8
Update upgrade 2022-06-26 11:12:56 +02:00
Éric Gaspar
3cbda20ca1
Update upgrade 2022-06-26 11:07:34 +02:00
Éric Gaspar
255876a3f8
Update upgrade 2022-06-26 10:59:47 +02:00
Éric Gaspar
20c82c9797
Update upgrade 2022-06-26 10:53:40 +02:00
Éric Gaspar
8e469f5250
Update upgrade 2022-06-26 10:29:57 +02:00
Éric Gaspar
2016024931
Migration (#382)
* add migration

* Update upgrade

* Update upgrade

* Update upgrade

* Update upgrade

* Update upgrade

* Update upgrade

* Update upgrade

* Update upgrade

* Update upgrade

* Update upgrade

* Update upgrade

* Update upgrade

* Update upgrade

* Fix

* Fix

* Fix

* Update install

* Update upgrade

* Fix

* Update install
2022-06-26 10:19:57 +02:00
Éric Gaspar
1175e6ea27
Merge branch 'testing' into PostgreSQL 2022-06-25 15:25:12 +02:00
Éric Gaspar
485136c06a
Cleaning (#380)
* Cleaning var

* Cleaning var
2022-06-25 11:03:29 +02:00
Éric Gaspar
aee2bc28e3
Fix 2022-06-23 15:32:27 +02:00
Éric Gaspar
48516f8dcb
Update _common.sh 2022-06-22 11:20:11 +02:00
Éric Gaspar
df54d7903a
reset config file 2022-06-22 11:15:13 +02:00
Éric Gaspar
7016b39a46
Reordering 2022-06-22 11:09:45 +02:00
Éric Gaspar
37afd78cac
install postgresql 2022-06-22 10:58:12 +02:00
biva
fdd908b9f5
Install with PostgreSQL (#373)
I took inspiration from https://github.com/YunoHost-Apps/commento_ynh/blob/master/scripts/install
2022-06-22 10:51:21 +02:00
biva
70505f252f
backup script for PostgreSQL (#376)
Inspired from https://github.com/YunoHost-Apps/moodle_ynh/blob/master/scripts/backup
2022-06-22 10:50:45 +02:00
Éric Gaspar
5d2dc7add6
adding quotation marks to password variable (#364)
* --keep plugins and config

* Update install

* Update upgrade
2022-05-18 22:59:02 +02:00
Pierre de La Morinerie
acbb2feeab scripts: restore local plugins after an upgrade 2021-12-26 09:54:59 +01:00
Éric Gaspar
678a1d80cb
Remove ynh_detect_arch helper (#317)
ynh_detect_arch is deprecated in favor of YNH_ARCH

* Add  #315 and #316
2021-12-06 12:37:56 +01:00
Pierre de La Morinerie
16db0114dc scripts: fix mmctl detection 2021-11-12 22:05:35 +01:00
Pierre de La Morinerie
2d66f1b930
Merge pull request #282 from YunoHost-Apps/Add---purge-option 2021-11-07 12:36:55 +01:00
Pierre de La Morinerie
b20163105d scripts: skip user and team creation if mmctl is missing
mmctl is not available for ARM builds yet.

See #306
2021-11-05 16:43:05 +01:00
ericgaspar
aca1f2c9f2
Merge branch 'testing' into Add---purge-option 2021-11-05 11:22:14 +01:00
Pierre de La Morinerie
0aa89327da scripts: use an absolute path when invoking mmctl
It seems on some distros (like Raspian), the current working directory
is not preserved accross sudo invocations, which causes an "bin/mmctl
not found" error.

Fix #304
2021-11-05 11:08:20 +01:00
Pierre de La Morinerie
5af7f2183f scripts: fix the syntax for adding a user to a team 2021-11-01 22:41:51 +01:00
Pierre de La Morinerie
f983391fb7 scripts: create and confirm the first user in the same step 2021-11-01 22:41:51 +01:00
Pierre de La Morinerie
b3647e3db5 config: store the socket file in a writable location
On Yunhost `/var/tmp` is only writable by root.
2021-11-01 22:41:51 +01:00
Pierre de La Morinerie
0bb5458e66 scripts: use newer option name instead of deprecated one 2021-11-01 22:41:51 +01:00
Pierre de La Morinerie
09cc4fbeb1 upgrade: warn about 6.0 lengthy database migrations 2021-10-31 13:05:13 +01:00
Pierre de La Morinerie
940589206b install: replace bin/mattermost by bin/mmctl
`mmctl` is supposed to authenticate as one of the admin users. But since
this is the first user we're creating, there are no admin yet.

So in order to create the first user, we:

1. enable mmctl's "local mode", which connects to the Mattermost server
   through a socket (rather than through the authenticated API), 
2. create the first user and team,
3. disable the "local mode".
2021-10-30 22:06:56 +02:00
ericgaspar
889c13e300
Update remove 2021-10-03 11:24:09 +02:00
Éric Gaspar
73f75150fe
Set rights (#274)
* Set rights
2021-09-16 11:39:20 +02:00
Pierre de La Morinerie
f8589544d5 scripts: warn about lengthy migrations when upgrading to 5.38.0
The release notes of the 5.38.0 version mention two lengthy database
migrations. Make sure users are told what is going on, so that they
don't think the upgrade failed.
2021-08-17 16:28:53 -05:00
ericgaspar
70e4e44c16
Fix linter warnings 2021-06-23 09:50:55 +02:00
Pierre de La Morinerie
3a3cfdedee scripts: warn about lengthy migration when upgrading from < 5.35 2021-06-15 08:34:59 +02:00
ljf (zamentur)
46630b05a5
[fix] Add not mandatory for data 2021-03-21 23:06:11 +01:00
ljf (zamentur)
b09591eb5e
[fix] AVoid to delete data 2021-03-21 22:18:19 +01:00
ljf (zamentur)
10b3deeec8
[fix] This dir could be in giga 2021-03-21 22:15:35 +01:00
Éric Gaspar
59013d066d
Fix linter (#224)
* Fix linter
* Update manifest.json
* Set password variable to smtp_user_pwd
* Fix doc link
2021-03-17 20:59:57 +01:00
Alexandre Aubin
1a0e23b8a4
Fix backward compatibilty for db_name 2021-01-31 11:30:25 +01:00
ericgaspar
84b90878c0
Update install 2021-01-28 17:04:45 +01:00
ericgaspar
7d830c3758
Update install 2021-01-28 17:02:43 +01:00
ericgaspar
ccf9375210
Update change_url 2021-01-18 13:28:22 +01:00
ericgaspar
3949045746
Update change_url 2021-01-17 23:47:36 +01:00
ericgaspar
9f72ea137c
Update change_url 2021-01-17 23:34:03 +01:00
ericgaspar
6da9363749
Create change_url 2021-01-17 19:41:16 +01:00
Éric Gaspar
9c3a0960f6
Update scripts/backup
Co-authored-by: Pierre de La Morinerie <kemenaran@gmail.com>
2021-01-14 12:20:53 +01:00
Éric Gaspar
504697a984
Update scripts/upgrade
Co-authored-by: Kayou <pierre@kayou.io>
2021-01-14 08:36:16 +01:00
Éric Gaspar
ad1ebec045
Update scripts/upgrade
Co-authored-by: Kayou <pierre@kayou.io>
2021-01-14 08:35:56 +01:00
Éric Gaspar
fc6a600bb9
Add Team and Enterprise (#202)
* Add Team/Entreprise install
2021-01-13 11:31:12 +01:00
ericgaspar
43bf44ff01
Remove change_url 2021-01-12 12:03:18 +01:00
ericgaspar
8030559337
Add missing variables 2021-01-12 11:12:37 +01:00
Éric Gaspar
c425aa5d94
Arm arch. support (#201)
* Add ARM sources
* Switch to TEAM edition
2021-01-12 10:33:02 +01:00
ericgaspar
7586f58759
Cleaning up 2021-01-12 00:01:16 +01:00
Éric Gaspar
705b3da0e7
repackage (#200)
* repackage
2021-01-11 23:46:48 +01:00
Pierre de La Morinerie
6826e253b4 scripts: use a per-instance db username
The scripts still uses "mmuser" by default, for retro-compatibility.
2020-02-18 22:31:15 +01:00
Pierre de La Morinerie
24261f8b7f Merge remote-tracking branch 'origin/master' into testing 2020-02-14 14:43:46 +01:00
Pierre de La Morinerie
efbe7c8dad scripts: fix SMTP port on install
Fix #156
2020-02-14 14:37:35 +01:00
Pierre de La Morinerie
f00398be3c scripts: use helper for generating random passwords 2020-02-10 01:39:37 +01:00
Pierre de La Morinerie
d460d7f2bd scripts: disable questionnable password complexity rules
Enforcing password complexity rules is usually useless, and encourages
bad security.

However, this is not our main issue. The problem is that when installing
Mattermost on Yunohost, if the user chooses a password that doesn't
fullfil all these requirements, the installation will fail with a hard-
to-spot error message.

We don't want this to happen, so we relax the rules a little.

Fix #159
2020-02-10 00:47:38 +01:00
Pierre de La Morinerie
66d31e3171 scripts: use ynh_replace_string instead of sed -i 2020-02-10 00:17:56 +01:00
Pierre de La Morinerie
fefff41733 scripts: remove all usages of sudo
The scripts are already run as root.
2020-02-09 01:07:59 +01:00