Commit graph

2500 commits

Author SHA1 Message Date
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
2b2527fb72 Fix test for failed restore 2021-04-05 17:15:34 +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
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
378cf904c8
Merge branch 'dev' into cron-legacy 2021-04-02 00:27:19 +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
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
6725a7f2bf
Merge pull request #1187 from YunoHost/improve-error-semantic
Improve error semantic
2021-03-23 00:34:06 +01:00
Alexandre Aubin
a5fe21fd38 Zblerg multiple forgotten import / typo >_> 2021-03-23 00:32:44 +01:00
Alexandre Aubin
e63ca06d37 Missing import 2021-03-22 21:58:15 +01:00
Alexandre Aubin
ab454ff62f Missing decode() for Popen output in certificate.py 2021-03-22 21:40:33 +01:00
Alexandre Aubin
33fab1c99f Be more robust against non-int values for level in app catalog (e.g. for apps 'inprogress' for which level is '?') 2021-03-22 20:45:03 +01:00
Alexandre Aubin
11c50c0187 Fix log_ref injection 2021-03-22 18:49:25 +01:00
Kay0u
4a19a60b44 dirty patch to wait for services to finish reloading 2021-03-17 15:32:19 +01:00
ljf (zamentur)
7a947dbce1
[fix] True instead of description (#1189) 2021-03-15 00:03:31 +01:00
Alexandre Aubin
721f6f265e
Typo ... 2021-03-14 18:45:36 +01:00
Alexandre Aubin
1a0ef94109 Define HTTP codes for Yunohost Errors 2021-03-12 04:24:27 +01:00
Alexandre Aubin
37f0c30ddc Inject log_ref into all is_unit_operation failures 2021-03-11 03:57:15 +01:00
Alexandre Aubin
01ccab5252 Add semantic of YunohostValidationError for all exceptions which are related to validating stuff 2021-03-11 01:39:52 +01:00
Alexandre Aubin
e639c8cd5a Move applist refresh cron + lets encrypt renewal cron to regen conf 2021-03-10 19:00:24 +01:00
Alexandre Aubin
7ba08eb550 Merge branch 'hotfixes-4.1.7.3' into dev 2021-03-02 02:14:35 +01:00
Alexandre Aubin
88b414c8f3 Don't redact empty string... 2021-03-02 02:02:10 +01:00
Alexandre Aubin
0c172cd3f9 Catch more secrets not redacted 2021-03-02 02:00:44 +01:00
Alexandre Aubin
01058aca28 Catch more secrets not redacted 2021-03-02 01:49:23 +01:00
Alexandre Aubin
d763247df4
No need for mysql root password (#912)
* Get rid of /etc/yunohost/mysql

* Get rid of restore hook for mysql password

* Tab -> spaces

* declare->local lost while merging conflicts etc

* Gotta keep that var
2021-03-01 19:11:41 +01:00
Alexandre Aubin
0884a0c162 Further simplify logging configuration by using the 'cli' handler when running yunohost-api in debug mode instead of creating a 'console' handler which is pretty much the same 2021-03-01 18:06:43 +01:00
Alexandre Aubin
38bed2aab2
Merge branch 'dev' into moulinette-logging 2021-02-28 17:03:15 +01:00
Alexandre Aubin
4131ddb070 Fix cases where we want to test if translation exists for a key 2021-02-28 17:00:48 +01:00
Alexandre Aubin
64a1b4cad2 Misc fixes after testing 2021-02-26 00:20:39 +01:00
Alexandre Aubin
071732dd7f Improve check that a dyndns domain already exists 2021-02-26 00:00:19 +01:00
Alexandre Aubin
a8e11c19db Delete dyndns key during domain removal if any 2021-02-25 23:59:51 +01:00
Alexandre Aubin
2752a8e485 Deprecate yunohost dyndns installcron/removecron 2021-02-25 23:59:51 +01:00
Alexandre Aubin
7efc6dcd07 Handle the dyndns cron from the regenconf 2021-02-25 23:59:17 +01:00
Alexandre Aubin
0dd0337450 Don't redact empty string... 2021-02-25 16:44:55 +01:00
Alexandre Aubin
acfea3d76d Define YNH_APP_BASEDIR to be able to properly point to conf folder depending on the app script we're running 2021-02-23 02:17:04 +01:00
Alexandre Aubin
f398f463f4 Replace \t in conf.json.persistent... 2021-02-21 05:23:52 +01:00