Commit graph

6339 commits

Author SHA1 Message Date
Alexandre Aubin
95ed4d67a0 Also backup Yunohost settings 2021-04-05 21:11:26 +02:00
Alexandre Aubin
9f599fee4c Re-add the certificate backup/restore hook ... 2021-04-05 21:11:26 +02:00
Alexandre Aubin
956e860ff7 Simplify ldap restore hook 2021-04-05 21:11:26 +02:00
Alexandre Aubin
8c351ad176 Fix data_xmpp backup/restore hook 2021-04-05 21:11:26 +02:00
Alexandre Aubin
5884d51b69 Typo 2021-04-05 21:11:26 +02:00
Alexandre Aubin
2be90e35eb Backup ssowat/conf.json.persistent 2021-04-05 21:11:26 +02:00
Alexandre Aubin
7e4536752e Backup xmpp data 2021-04-05 21:11:26 +02:00
Alexandre Aubin
ce2c608253 Do not backup ssh, ssowat, certs, nginx, xmpp confs 2021-04-05 21:11:26 +02:00
Alexandre Aubin
d750b77e46 Add backup/restore hooks for manually modified files 2021-04-05 21:11:26 +02:00
Alexandre Aubin
23ceedf5d1
Merge pull request #1191 from YunoHost/improve-restore-error-management
Improve error management for app restore, similar to what's done in app install
2021-04-05 20:57:34 +02:00
Alexandre Aubin
81c43747a0 Increase delay for reloading services + display actual status in error message (seeing some weird php7.3-fpm stuff during some specific test...) 2021-04-05 18:48:05 +02:00
Alexandre Aubin
fe9f0731e8 Add logging to backup_create 2021-04-05 18:39:26 +02:00
Alexandre Aubin
86f22d1b46 Fix warning when there's no patches folder 2021-04-05 18:39:08 +02:00
Alexandre Aubin
42f8c9dcc1 Fix ynh_requirement parsing 2021-04-05 18:35:42 +02:00
Alexandre Aubin
4607d57512
Merge pull request #1188 from YunoHost/sane-default-permission-for-files
Sane default permissions for files added using ynh_add_config and ynh_setup_source
2021-04-05 18:09:58 +02:00
Alexandre Aubin
2b2527fb72 Fix test for failed restore 2021-04-05 17:15:34 +02:00
Alexandre Aubin
5db621bd19
Merge pull request #1203 from YunoHost/smarter-migration-during-restore
Drop support for backups from prior 3.8, introduce hooks in migrations to apply migrations during restore
2021-04-05 16:52:26 +02:00
Alexandre Aubin
0c4e4c67c5 Fix locale strings 2021-04-05 16:44:10 +02:00
Alexandre Aubin
6d3fcd6cc3 Improve error management for app restore, similar to what's done in app install 2021-04-05 16:31:09 +02:00
Alexandre Aubin
80e2e0da71 Misc test fixes for corrupted archive test though not sure what doing .. 2021-04-03 01:28:52 +02:00
Alexandre Aubin
037a2a66a4 Not sure what I'm doing but for some reason can't remove yolo.test anymore because it's the main domain during tests idk 2021-04-03 00:30:44 +02:00
Alexandre Aubin
72eb0b2e49 We don't use the info.json during restore from 3.8 anymore 2021-04-02 23:02:08 +02:00
Alexandre Aubin
dc10e88b1e Unused imports 2021-04-02 22:36:34 +02:00
Alexandre Aubin
2c1923a142 Merge remote-tracking branch 'origin/dev' into smarter-migration-during-restore 2021-04-02 22:20:42 +02:00
Alexandre Aubin
08fbfa2e39 Add new ssowat panel overlay setting description 2021-04-02 17:18:39 +02:00
Alexandre Aubin
8e70484c63 Stale strings 2021-04-02 04:56:03 +02:00
Alexandre Aubin
93813e773f Typo 2021-04-02 04:53:37 +02:00
Alexandre Aubin
c552b4f006 Be able to define directly in migrations hooks that are called when restoring system/apps prior to the introduction of the migration 2021-04-02 04:28:52 +02:00
Alexandre Aubin
df49cc83d5 Drop legacy stuff for backups from before the 3.7 era 2021-04-02 03:55:20 +02:00
Alexandre Aubin
a8656c835c Use backups from 3.8 instead of old 2.4 archives for system/apps restore tests 2021-04-02 03:48:25 +02:00
Alexandre Aubin
8b8a8fb3c7 Drop support for restoring backup archives from prior to 3.8 2021-04-02 03:13:53 +02:00
cyxae
30421954a4
Add an option to disable the 'YunoHost' panel overlay in web apps (#1071)
* Add an option to disable the 'YunoHost' panel overlay in apps

* set default value for overlay as true

* Add a hook to auto-update nginx conf + fix deprecated 'service regen-conf'

* Change name of setting to ssowat.panel_overlay.enabled

* [fix] Duplicate function

* Quote var, just in case the var is empty for some reason

Co-authored-by: ljf (zamentur) <zamentur@users.noreply.github.com>
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2021-04-02 02:21:29 +02:00
Alexandre Aubin
a03b62245d
Merge pull request #1184 from YunoHost/cron-legacy
Don't backup crons + manage crons from the regenconf
2021-04-02 00:27:35 +02:00
Alexandre Aubin
378cf904c8
Merge branch 'dev' into cron-legacy 2021-04-02 00:27:19 +02:00
Alexandre Aubin
37db93b49a Typo 2021-04-01 23:27:56 +02:00
Alexandre Aubin
40b22617d3 Unused mports 2021-04-01 23:14:43 +02:00
Alexandre Aubin
00ec7b2fc4 Support having .tar / .tar.gz in the archive name arg of backup_info/restore 2021-04-01 22:58:04 +02:00
Alexandre Aubin
d5ecdca896
Merge pull request #1201 from YunoHost/helpers-tests
Add quick-and-dirty test system for helpers
2021-04-01 19:53:38 +02:00
Alexandre Aubin
4acfbdeade Fix oopsies, fix and add test for ynh_setup_source with patch 2021-04-01 18:26:18 +02:00
Alexandre Aubin
d11d26bdb4 Generate/server a dummy.tar.gz locally instead of hardcoding an external url 2021-04-01 18:02:23 +02:00
Alexandre Aubin
d76f8d7969 explaaaaain 2021-04-01 18:02:23 +02:00
Alexandre Aubin
d782fe331d Return exit code 1 when at least one test failed 2021-04-01 18:02:23 +02:00
Alexandre Aubin
4d6fcb1b8f mv helpers.tests test_helpers.d, better naming consistency 2021-04-01 18:02:23 +02:00
Alexandre Aubin
875fead9b5 Add test-helpers in gitlab CI pipeline 2021-04-01 18:02:23 +02:00
Alexandre Aubin
94beb52b08 Rename to .sh for syntax highlighting, add /bin/bash shebang 2021-04-01 18:02:23 +02:00
Alexandre Aubin
0ac57e5305 Add drafty test system for helpers 2021-04-01 18:02:23 +02:00
Alexandre Aubin
cd1f64383b log.py: don't inject log_ref if the operation didnt start yet 2021-04-01 15:55:46 +02:00
Alexandre Aubin
4f44df388e services.py, python3: missing decode() in subprocess output fetch 2021-04-01 15:51:49 +02:00
Alexandre Aubin
45b55d1050
Add --keep to ynh_setup_source to keep files that may be overwritten during upgrade (#1200) 2021-03-31 17:41:20 +02:00
Alexandre Aubin
514112a538 Misc permission tweak, set everything as owned by root by default 2021-03-25 16:03:18 +01:00