Commit graph

53 commits

Author SHA1 Message Date
Alexandre Aubin
7ebe92163d Merge remote-tracking branch 'origin/smarter-selfupgrade-mechanism' into bullseye 2021-12-01 19:47:36 +01:00
Alexandre Aubin
10e00b3318 Fix old moulinette stuff not relevant anymore 2021-11-22 08:13:14 +01:00
Alexandre Aubin
fff1a8a4d6 [enh] Smarter API self-upgrade mechanics 2021-11-06 18:58:31 +01:00
Alexandre Aubin
28b1bbcc86 Also lint/reformat debian scripts 2021-10-06 16:36:08 +02:00
Alexandre Aubin
8c7080de5f Simplify debian/install 2021-09-20 23:25:54 +02:00
Alexandre Aubin
ffc132f2c5 Configure mdns during yunohost's debian postinst init 2021-08-12 16:59:54 +02:00
Alexandre Aubin
fe2e014b56 mdns: Rework mdns's conf handling such that it's generated by the regen-conf. Also drop avahi-daemon because not needed anymore. 2021-08-12 15:27:01 +02:00
tituspijean
99aacd8b51 Do not rely on Moulinette, integration with Yunohost of mDNS broadcast 2021-07-11 14:24:50 +00:00
Alexandre Aubin
29a3ad0484
Merge branch 'dev' into move-ldap-init-before-postinstall 2021-01-31 16:21:23 +01:00
Alexandre Aubin
35425a1b36
Merge pull request #1147 from YunoHost/dont_miserably_rerun_postinstall
Abort postinstall if /etc/yunohost/apps ain't empty
2021-01-30 16:47:04 +01:00
Alexandre Aubin
b6b33d99de
We don't want any output of ls, just the return code
Co-authored-by: Kayou <pierre@kayou.io>
2021-01-28 00:29:38 +01:00
Alexandre Aubin
0606df529b Also add a check on debian/postinst because we're about to move a bunch of init step to debian/postinst instead of 'yunohost tools postintall' 2021-01-23 00:08:50 +01:00
Alexandre Aubin
ed35915e7f Move ldap initialization before the postinstall 2021-01-23 00:03:25 +01:00
Alexandre Aubin
c7b55cdfad migrations migrate -> migrations run 2021-01-21 22:30:31 +01:00
Alexandre Aubin
834b767000 [fix] Explicitly create home using mkhomedir_helper instead of obscure pam rule that doesn't work anymore 2020-07-27 19:20:36 +02:00
Alexandre Aubin
decb372b7a Run a full diagnosis after each yunohost upgrade 2019-11-22 19:18:24 +01:00
Alexandre Aubin
978d9d5dfd Burn this fucking madness .. there is no reason to mess with yunohost-firewall during postinst, and it doesnt even actually restart it because $2 is always empty, so what the actual fuck. 2019-11-22 19:05:50 +01:00
ljf
a2759b76dc [enh] Dpkg vendor set to YunoHost 2019-07-07 22:09:38 +02:00
Alexandre Aubin
e6f3a99269 Change binding from service_regen_conf to tools_regen_conf 2019-02-18 19:27:40 +01:00
Bram
ebd5b33c31
Merge pull request #363 from YunoHost/enh-boot-prompt
[enh] Bootprompt is back
2018-05-26 03:34:34 +02:00
Alexandre Aubin
c568b04459 Manage the auto/manual flag in migrations_migrate 2018-03-16 14:38:04 +01:00
ljf
fa40a5cf3b [enh] Bootprompt is back 2017-09-01 03:10:31 +02:00
Laurent Peuch
a441f37454 Migration framework (#195)
* [enh] list migrations
* [enh] first version of the migrate command
* [mod] add todo comment
* [mod] migrate command shouldn't return anything
* [mod] rename yunohost_migrations to data_migrations
* [mod] better regex
* [enh] had base class for migration
* [fix] inverted condition
* [enh] save last runned migration
* [enh] add migrations state command
* [mod] add todo comments
* [mod] error handling
* [mod] DRY
* [doc] more comment
* [enh] handle exceptions on migration
* [mod] error handling
* [mod] DRY
* [enh] error handling
* [mod] this is done earlier
* [doc] docstring
* [enh] handle fail to load migration case
* [doc] add TODO Comment
* [fix] typos, thx ju
* [enh] add a migration to remove archivemount (as an example)
* [fix] check_call is boring
* [enh] support forward/backward migrations
* [mod] I don't need auth
* [fix] apt is expecting input...
* [mod] save it as int
* [mod] add some logging
* [doc] update todo
* [fix] I also need to run backward latest runed migration
* [enh] add target cli argument
* [enh] fake migration
* [enh] uniformly convert to int at the same place
* [fix] we need to filename now
* [enh] validate input
* [enh] handle 0 special case
* [mod] rename fake to skip
* [mod] s/runed/run/g
* [doc] anglich typo in comments
* [mod] more explicit error message
* [mod] more typo
* [doc] put comment in the right place
* [mod] typo
* [fix] forgot to cape migrations by target
* [fix] typo
* [mod] uses moulinette helpers
* [enh] launch migrations during package upgrade
* [mod] remove unused import
* [mod] sort translation keys
* [enh] i18n
* [fix] missing __init__.py in data_migrations
* [mod] move to a subcategory
* Typo / caps / consistency
* [fix] forgot that migrations is now in tools, in postinst
* Skip migrations during postinstall
* Remove archivemount example migration
It relied on apt-get, which can't be used during 'postinst' debian scripts because we're already inside a apt
* Add migration for cert group from 'metronome' to 'ssl-cert'
2017-08-07 15:55:18 +02:00
Jérôme Lebleu
7223a627af [fix] Remove old PAM config file at package postinstall 2016-04-27 21:12:09 +02:00
Jérôme Lebleu
4912a2afae [fix] Init LDAP with package installation to fix ynh post-install 2016-04-21 22:59:36 +02:00
Jérôme Lebleu
053d3efd79 [deb] Use new regen-conf action name in postinst 2016-04-21 21:58:55 +02:00
Jérôme Lebleu
43f0fd5dbf [deb] Do not output regen-conf result at postinst 2016-04-16 20:06:45 +02:00
Jérôme Lebleu
d24cd494f3 [fix] Update package first install and call some conf_regen hooks with init 2016-04-16 19:32:18 +02:00
Jérôme Lebleu
3b70601254 [deb] Enable yunohost-firewall on service restart at postinst 2016-04-09 17:35:27 +02:00
Jérôme Lebleu
3b3680c2d2 [deb] Rely on dh_installinit to restart yunohost-firewall after upgrade 2016-04-09 17:02:48 +02:00
Jérôme Lebleu
b1abc6f7e8 [deb] Move yunohost-firewall restart to a separate and improved function 2016-03-13 11:38:16 +01:00
Jérôme Lebleu
5664efad1d [fix] Attempt to improve services management in Debian packaging 2016-03-12 22:33:59 +01:00
Laurent Peuch
3909aaddf1 [mod] Explain how to start yunohost-firewall service 2016-03-09 21:34:30 +01:00
Jérôme Lebleu
9b2da4944e [fix] Prevent insserv warning when using systemd at package postinst 2015-11-15 15:50:49 +01:00
Jérôme Lebleu
b83c7317b3 [fix] Display a more detailed message when yunohost-firewall is stopped 2015-11-15 15:34:36 +01:00
Jérôme Lebleu
bcaaec0505 [fix] Do not rely on dh_installinit and restart service after upgrade 2015-11-15 12:44:27 +01:00
kload
db6650af38 [enh] Warn the user about the waiting at the configuration generation 2015-11-15 11:13:38 +01:00
Jérôme Lebleu
2a6d7b7c4a [fix] Create home directory during login (fixbug #80) 2015-11-13 13:40:53 +01:00
kload
cdb862dfaf [fix] Do not fail if firewall is stopped 2015-10-31 19:21:25 +01:00
Jérôme Lebleu
e133acdc84 [fix] Do not start yunohost-firewall service by default 2015-10-31 16:32:01 +01:00
kload
009fe2f637 [fix] Force hook execution when YunoHost is not configured 2015-10-31 14:26:11 +01:00
Jérôme Lebleu
1beadf3051 [fix] Clean systemd services install and really fix firewall 2015-10-09 14:26:04 +02:00
Jérôme Lebleu
15ccd60545 [fix] Fix some lintian issues and add yunohost-firewall.service 2015-10-07 00:43:48 +02:00
kload
23e2e9c360 [enh] Regen the configuration at package upgrade 2015-10-02 05:14:30 -04:00
kload
7b308a0fc2 [fix] slapd configuration needed for postinstall 2015-10-01 18:50:05 -04:00
kload
6411d0e08e [fix] Run yunohost hook + create the CA at package installation 2015-10-01 17:34:30 -04:00
kload
0ed2081f89 [enh] Make postinstall and main domain change regen-conf friendly 2015-10-01 16:36:30 -04:00
Julien Malik
115df29afc [fix] remove copy-pasted comments 2015-09-28 16:54:49 +00:00
Julien Malik
ef38929b71 [lintian] fix postrm-contains-additional-updaterc.d-calls etc/init.d/yunohost-firewall 2015-09-28 16:54:48 +00:00
Julien Malik
18984e646e [lintian] fix output-of-updaterc.d-not-redirected-to-dev-null yunohost-api postinst 2015-09-28 16:54:48 +00:00