Commit graph

155 commits

Author SHA1 Message Date
Andrea PIERRÉ
b7c8ab541f [#901] Human readable date 2018-10-05 15:02:16 +02:00
Laurent Peuch
b111c57aa5 [fix] app_id is id in app list, not in yunohost 2018-09-08 02:46:13 +02:00
irina11y
95827438c5 Add option '--need-lock' to 'yunohost service add' (#530)
* [enh] Add option '--need-lock'

* corection typo

* correction merge
2018-09-06 14:00:09 +02:00
irina11y
e56616af5e Allow to add a service description on "yunohost service add" (#529)
* [enh] add a service description with YML file

* moins "espace"
2018-09-02 18:18:01 +02:00
ljf (zamentur)
39639044ca
Merge branch 'stretch-unstable' into journals 2018-08-10 16:08:07 +02:00
Alexandre Aubin
8eaceefbbd Add a --share option to 'log display' to share the log on yunopaste 2018-07-21 17:59:51 +00:00
Laurent Peuch
dc0611d91b [mod] better routes for actions 2018-06-22 07:34:10 +02:00
Laurent Peuch
f35e3ef055 [enh] can run the action of an app 2018-06-22 04:47:32 +02:00
Laurent Peuch
eef1b6d658 [enh] new command to list apps action 2018-06-22 04:45:50 +02:00
Laurent Peuch
6a1b8fdfa3 [mod] better API paths for configpanel 2018-06-22 04:37:08 +02:00
Laurent Peuch
ff3913adbb [enh] first version of script/config apply 2018-06-22 04:37:08 +02:00
Laurent Peuch
c0ec14b79b [enh] first working prototype of config-panel show 2018-06-22 04:37:08 +02:00
ljf
a5ebc76eda Merge from stretch-unstable 2018-06-21 22:41:20 +02:00
Alexandre Aubin
8268d6e074
Fix counter-intuitive backup API (#490)
* Remove old/deprecated --hooks

* Remove --ignore-system and --ignore-apps, backup/restore everything by default, or only the parts explicitly given
2018-06-15 19:30:51 +02:00
ljf
5676f05dfb [enh] Better help for log list action 2018-06-04 04:04:10 +02:00
ljf
89124d4a9f [enh] Support others log categories 2018-06-02 13:42:43 +02:00
Bram
59bb47de18
backup filename limit set to 50 2018-05-26 10:43:37 +02:00
ljf
930567f54f [enh] Replace file_name by path in log display cmd 2018-05-25 11:58:46 +02:00
Alexandre Aubin
01956d22bd
Merge pull request #429 from YunoHost/manual-migrations
[enh] Manual migrations
2018-05-02 02:00:32 +02:00
Alexandre Aubin
062ca32eac
Move ssh commands into a subcategory of 'user' + fix a few bugs (#445)
* Move all ssh commands to a subcategory in user...

* [fix] Actionmap didn't match functions input ?

* [fix] Invalidate nscd cache to propagate new loginShell

* Consistency of list-keys even if there's no key..
2018-05-01 23:45:12 +02:00
ljf
1b62e9425d [enh] Allow to display part of log specified with path 2018-04-14 18:11:50 +02:00
ljf
650b768229 [enh] Replace category by related_to fields 2018-04-14 04:04:09 +02:00
ljf
ba01168684 [enh] Allow to display all operation logs with one command 2018-04-03 20:38:56 +02:00
Alexandre Aubin
9009b3f9d3 Handle disclaimers 2018-03-16 14:38:04 +01:00
Alexandre Aubin
c266147fd9 Be able to list only pending or done migrations 2018-03-16 14:38:04 +01:00
Alexandre Aubin
c568b04459 Manage the auto/manual flag in migrations_migrate 2018-03-16 14:38:04 +01:00
Laurent Peuch
c992085009
Merge pull request #404 from YunoHost/authorized_keys
[enh] add commands to manage authorized-keys of users
2018-02-15 05:51:57 +01:00
Laurent Peuch
79ee4cb13d
Merge pull request #403 from YunoHost/allow_ssh_user
Add commands to allow/disallow a yunohost user to connect in ssh
2018-02-15 05:51:46 +01:00
Laurent Peuch
6dabcadf40
Merge branch 'unstable' into journals 2018-02-08 16:44:32 +01:00
JimboJoe
e59e2da0b3
Harmonize help strings 2018-01-12 09:18:31 +01:00
Laurent Peuch
28450ce8c3 [enh] new command 'app change-label' 2018-01-10 16:30:20 +01:00
Laurent Peuch
d92b8562d0 [doc] document journal display 2018-01-06 11:18:28 +01:00
Laurent Peuch
3eed2a28fe [enh] add journals display command 2018-01-06 00:50:39 +01:00
Laurent Peuch
6cb179703e [fix] bad docstring 2018-01-06 00:50:39 +01:00
Laurent Peuch
5dcf0b782f [enh] allow to limit to number of journals per categories 2018-01-06 00:50:39 +01:00
Laurent Peuch
eef247d34b [enh] start to work on journals 2018-01-06 00:44:33 +01:00
Laurent Peuch
c55b8cec16 [enh] add commands to manage authorized-keys of users 2018-01-05 00:12:43 +01:00
Laurent Peuch
ab282e88a7 [enh] add commands to allow user to have access in ssh 2018-01-04 22:04:15 +01:00
Laurent Peuch
66524213cd Merge pull request #348 from YunoHost/clean_domains.py
Clean domains.py
2017-08-19 20:23:31 +02:00
Laurent Peuch
b77d58a671 Merge pull request #347 from YunoHost/enh-simpler-lock-system
[enh] Simpler lock system
2017-08-18 04:13:15 +02:00
Laurent Peuch
4f1cf058c2 Merge pull request #351 from YunoHost/dev_shell
Integrate a command to launch a dev shell from within moulinette context
2017-08-18 04:12:25 +02:00
Laurent Peuch
4e1a839557 [enh] can do a 'yunohost tools shell -c command' à la python -c 2017-08-15 17:24:26 +02:00
Laurent Peuch
52c7a37a78 [enh] add 'yunohost tools shell' 2017-08-15 17:18:50 +02:00
Laurent Peuch
685f3746ef [fix] forgot to remove args from actionsmap 2017-08-14 23:07:47 +02:00
Laurent Peuch
56513bbdb1 [mod] we never used those filtering/offset things 2017-08-13 23:18:18 +02:00
Alexandre Aubin
0a8362c764 Remove old 'lock' configuration 2017-08-13 17:01:06 -04:00
Laurent Peuch
02ea0c0656 [enh] Add reboot/shutdown actions in tools (#190)
* [enh] Implements shutdown/reboot helpers.
* [enh] Improve reboot/shutdown help.
2017-08-11 16:16:09 +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
ljf (zamentur)
20f4a39bf0 [fix] Errors in backup custom methods (#326) 2017-07-13 19:36:31 +02:00
ljf (zamentur)
d3eeb4bbc7 [enh] Refactor backup management to pave the way to borg (#275)
* [enh] Use a csv to list file to backup
* [enh] Use csv python module
* [wip] Backup refactoring
* [wip] Backup class refactoring
* [enh] Add archivemount dependencies
* [wip] Restore refactoring
* [fix] Some error in this refactoring
* [fix] Missing backup key translation
* [fix] Bad YNH_CWD in hook backup
* [fix] App backup part was broken
* [fix] Restore operation was broken
* [fix] No compressed backup
* [fix] Don't commit backup path into csv if app backup fail
* [fix] Default backup collect_dir should be in tmp subdir
* [enh] Simplify a copy code
* [enh] Build backup info from properties
* [enh] Improve comments presentation
* Adding first tests for backup/restore
* Adding more backup/restore app test scenario
* [enh] Separate BackupMethods in distinct class
* Adding test of restoring a wordpress archive from 2.4
* [fix] Be able to delete backup link too
* [fix] Bad internationalization key
* [fix] Edge case with empty mysql pwd restore
* [fix] Unset var in restore
* [fix] Edge case with empty mysql pwd restore
* Adding test for backup crash handling
* Cleaning tests + checking tmp dir is empty
* [fix] Missing tmp in backup path
* [fix] Error on reading backup csv
* Adding test of failed restore
* Adding tests when not enough space available
* Simplifying tests using markers
* [fix] ynh backup/restore helpers with only one arg
* [fix] Unmount subdir with python
* [enh] Improve backup size management
* [fix] None object in backup
* [enh] Remove dead code
* [fix] Missing locales
* [enh] Adapat test about needed space
* [fix] Pass some test
* [enh] Remove dead code
* [enh] Pass all test
* [enh] Adding test that backups contains what's expected
* Fix typo in tests
* [fix] Bad documentation
* [enh] Add comment
* [enh] Use len in place of implicit {} == False
* [enh] Add comment
* [enh] Add comment
* [enh] Refactoring on _collect_app_files
* Adding skeleton for remaining tests to write
* [enh] Use a csv to list file to backup
* [enh] Use csv python module
* [wip] Backup refactoring
* [wip] Backup class refactoring
* [enh] Add archivemount dependencies
* [wip] Restore refactoring
* [fix] Some error in this refactoring
* [fix] Missing backup key translation
* [fix] Bad YNH_CWD in hook backup
* [fix] App backup part was broken
* [fix] Restore operation was broken
* [fix] No compressed backup
* [fix] Don't commit backup path into csv if app backup fail
* [fix] Default backup collect_dir should be in tmp subdir
* [enh] Simplify a copy code
* [enh] Build backup info from properties
* [enh] Improve comments presentation
* Adding first tests for backup/restore
* Adding more backup/restore app test scenario
* [enh] Separate BackupMethods in distinct class
* Adding test of restoring a wordpress archive from 2.4
* [fix] Be able to delete backup link too
* [fix] Bad internationalization key
* [fix] Edge case with empty mysql pwd restore
* [fix] Unset var in restore
* [fix] Edge case with empty mysql pwd restore
* Adding test for backup crash handling
* Cleaning tests + checking tmp dir is empty
* [fix] Missing tmp in backup path
* [fix] Error on reading backup csv
* Adding test of failed restore
* Adding tests when not enough space available
* Simplifying tests using markers
* [fix] ynh backup/restore helpers with only one arg
* [fix] Unmount subdir with python
* [enh] Improve backup size management
* [fix] None object in backup
* [enh] Remove dead code
* [fix] Missing locales
* [enh] Adapat test about needed space
* [fix] Pass some test
* [enh] Remove dead code
* [enh] Pass all test
* [enh] Adding test that backups contains what's expected
* Fix typo in tests
* [fix] Bad documentation
* Adding skeleton for remaining tests to write
* [enh] Add comment
* [enh] Use len in place of implicit {} == False
* [enh] Add comment
* [enh] Add comment
* [enh] Refactoring on _collect_app_files
* [fix] Replay e1a507 deleted by rebase
* [fix] ynh_restore helper
* Renaming 'hooks' terminology to 'system' where it makes sense
* Propagating new --system/--ignore-system to actionmap
* Adding more tests + clarifying some functions and messages
* Factorize out the definition and validation of backup/restore targets
* Add missing key
* Use list comprehension instead of dirty loops
* [enh] Add docstring in BackupManager
* [enh] Add docstring on BackupMethod(s)
* [fix] Remove deadcode
* [fix] Remove debug message
* [enh] Add comments on RestoreManager
* [enh] Add comments on backup constants
* Adding a proper report/result for each backup target
* Skipping tests not implemented yet
* Fixing little mistake from merging
* [fix] Support different fs or archivemount error
* [enh] Backup helpers readability
* [fix] Copy backup method
* [fix] Deprecated warning always displayed
* [enh] Retrieve info.json file inside tar.gz
* Trying to reorganize methods with sections for readability
* [enh] Support archivemount failure
* [fix] Missing env var for system part restore helpers
* Clarifying disk usage / free space computation
* [enh] Refactoring around backup set_targets()
* Clarifying structure of backup_create and backup_restore
* Move RestoreManager between BackupManager and BackupMethods
* [fix] Missing locales
* [fix] System part restore if archivemount failure
* [enh] Extract all conf instead of specific code
* [fix] Other output directory (compressed archive)
* [enh] Add test for uncompressed backup
* [fix] Compressed backup in an existing output directory
* [fix] Return size for retro-compatibility
* [fix] Mountpoint check aborting script when called with -eu
* [fix] Avoid failure test with set -eu
* [fix] locale strings missing/bad arguments
* Check free space before mount
* [fix] ynh_restore_helpers with existing archive path
* Adding skeletons for moar tests
* Fixing some weird bug in _get_archive_path
* Adding a regen-conf at the end of system restore
* Adding tests of system restore from 2.4
* Have a class dedicated to target management
* Cleaning tests
* Misc formatting
* More meaningful variable names inside app restore
* [fix] can't call source ../settings/scripts/_common.sh in app backup
* [fix] ynh_install_app_dependencies is not compatible with readonly mount
* [fix] Remove temporary file
2017-06-02 13:41:16 +02:00