Commit graph

1022 commits

Author SHA1 Message Date
Jérôme Lebleu
fba14e55df [enh] Introduce new 'requirements' manifest key (close #113)
The 'requirements' key allows to specify the Debian packages which must
be installed and their required version. It must be an array of the
package name as the key and its version specifier - for its format, see
yunohost.utils.packages.Specifier - as value. For example:

"requirements": {
  "yunohost": ">= 2.4, << 2.5"
}
2016-03-08 22:58:47 +01:00
Jérôme Lebleu
5afd0c1272 [enh] Rely on APT python library to retrieve packages version
It introduces a new `yunohost.utils` package which will contain common
utils used by YunoHost actions. It comes with a work in progress `packages`
module with simple methods to retrieve installed version of packages for now.
2016-03-08 16:10:14 +01:00
Jérôme Lebleu
fcc1fe57dc [i18n] Use named arguments for remaining translations in app.py 2016-03-01 11:18:23 +01:00
Jérôme Lebleu
565bc616d8 [fix] Do not raise if one app upgrade fails and regen SSOwat conf 2016-02-26 20:18:22 +01:00
Moul
abd9cfc44b [enh] ttl: change pattern name. 2016-02-24 12:01:22 +01:00
Moul
3d779cfdf8 [enh] ttl: Handle error message for non positive numbers. 2016-02-23 23:18:02 +01:00
Jérôme Lebleu
bd7308187c [enh] Allow to install a given git reference of an app
This quickly adds support for git URL with /tree/ inside in app installation.
It is intended to ease tests of apps which use new manifest format and helpers
for the 2.4 release. An example usage:

 $ yunohost app install https://github.com/jeromelebleu/roundcube_ynh/tree/dev

As it will certainly change with the app category refactoring, it is not
documented and should be used with care.
2016-02-19 13:56:55 +01:00
Jérôme Lebleu
4e48aeb388 [enh] Store backup size and check free space before restoring (bugfix #189) 2016-02-18 16:20:36 +01:00
Jérôme Lebleu
94f81cc655 [i18n] Use named variables in app category translations 2016-02-05 11:39:23 +01:00
Jérôme Lebleu
da2b3691c7 [enh] Use a common function to retrieve app settings 2016-01-27 22:31:04 +01:00
Jérôme Lebleu
d041a5f264 [enh] Replace msignals.display by logging in backup category 2016-01-19 18:49:06 +01:00
Jérôme Lebleu
9285976acc [enh] Integrate 'optional' key of arguments in app manifest 2016-01-02 13:11:10 +01:00
Jérôme Lebleu
58145509e2 [fix] Split service_configuration_conflict translation key (fixbug #136) 2016-01-02 11:46:17 +01:00
Jérôme Lebleu
4a06cbdc31 [i18n] Review translations and keys related to app arguments 2015-12-28 20:10:55 +01:00
Jérôme Lebleu
096c4d0246 [enh] Add support for app argument 'type' defined in the manifest 2015-12-28 19:58:21 +01:00
Jérôme Lebleu
b7fcf9ffdb [enh] Quickly implement logging in service.py and use it to show the diff 2015-11-14 23:38:44 +01:00
Jérôme Lebleu
ea84f99461 Merge branch 'unstable' into logging 2015-11-14 23:16:12 +01:00
Jérôme Lebleu
e14674af88 [enh] Split stdout/stderr wrapping in hook_exec and add a no_trace option 2015-11-14 23:13:51 +01:00
kload
b72c8563c3 [fix] Translate regenconf messages in English and French
+ use the new {variable:s} format
2015-11-14 18:48:04 +01:00
Jérôme Lebleu
b7d0e977b9 [enh] Update hook.py to use logging instead of msignals.display 2015-11-14 18:21:36 +01:00
Jérôme Lebleu
a51e395bca [fix] Validate backup/restore hooks and show restoration result 2015-10-05 17:43:48 +02:00
Jérôme Lebleu
76c7b3b3db [fix] Restructure app restauration and catch app script failure
* Do not copy again the restore app script
 * Set app folder permissions and properly remove it on failure
 * Add a raise_on_error argument to hook_exec
 * Review displayed messages
2015-10-05 15:08:34 +02:00
zamentur
ffc9bcaf33 [fix] Don't run hooks not in the backup 2015-10-03 23:27:06 +02:00
zamentur
d83f81be66 [fix] Restore with the app restore script from the backup 2015-10-03 22:17:02 +02:00
Jérôme Lebleu
7280a56e16 [enh] Bind folders in data backup hooks instead of copying them 2015-10-03 00:59:19 +02:00
Jérôme Lebleu
007dfed607 [enh] Use new filesystem utils in backup_create 2015-10-02 20:33:05 +02:00
Jérôme Lebleu
20c4937f81 [enh] Review the app backup execution and structure 2015-10-02 20:33:05 +02:00
Jérôme Lebleu
999a61d2b2 [enh] Allow to ignore backup hooks execution at creation 2015-10-02 03:40:06 +02:00
zamentur
83a796f3ff [enh] Add a yunohost backup delete command 2015-10-02 02:49:04 +02:00
Jérôme Lebleu
4c37d8f273 [fix] Do not process app backup script as hook 2015-10-01 01:02:24 +02:00
kload
1ceb1259bc [fix] IPv6 record in DynDNS 2015-09-26 22:28:49 +02:00
Jérôme Lebleu
fd5eefef79 [fix] Invalidate passwd at user creation/deletion (fix #70) 2015-07-14 22:14:57 +02:00
Adrien Beudin
c31ddef8b6 [enh] Add MX check + Refactoring 2015-04-10 14:29:55 +00:00
Adrien Beudin
4372fe5fe9 [enh] Add check STMP outgoing port 2015-04-09 17:43:48 +00:00
Adrien Beudin
15a030daa9 [fix] show usage quota status 2015-04-09 10:55:30 +00:00
Jérôme Lebleu
54e92ac927 [enh] Add support for user mailbox size quota 2015-03-24 16:38:34 +01:00
Jérôme Lebleu
ac06044634 [i18n] Remove unused 'yunohost' translation key 2015-02-20 15:51:27 +01:00
Jérôme Lebleu
d5af5ead61 [enh] Review and add features to firewall category
* allow/disallow a port for each IP version and add ipv4 and ipv6 only arguments
* permit to allow/disable a range of ports
* return combined IPv4 and IPv6 - TCP and UDP - ports in firewall_list and allow to sort results
* review firewall_reload with new moulinette utils and log output of failed commands
* add --no-reload argument to prevent firewall reloading in firewall_allow/disallow
* some other small changes, e.g. add logging
2015-01-11 16:29:18 +01:00
Jérôme Lebleu
1c96b4f9a3 [enh] Refactor firewall_upnp action
* make sure to save final UPnP status (fix #42)
* deprecate the 'reload' action and replace it with a new 'status'
action which retrieve current UPnP status
* allow to not refresh port forwarding with the --no-refresh argument
* some other small changes, e.g. set the action argument to one
optionnal choice, rename the UPnP cron job file, add logging
2015-01-03 12:30:24 +01:00
Jérôme Lebleu
d1b31d5f33 [enh] Allow to select hooks names to execute in hook_callback 2014-12-12 12:26:29 +01:00
kload
908ad8929a [enh] Use dnsmasq instead of bind9 2014-12-07 21:44:39 +01:00
kload
d890307ab1 [enh] Use dnsmasq instead of bind9 2014-12-07 19:26:44 +01:00
Jérôme Lebleu
3e1fc78786 [enh] Choose the property to list hook by and show info in hook_list 2014-12-04 15:47:04 +01:00
Jérôme Lebleu
608c5dc531 [i18n] Specify lower-case requirement for pattern_username 2014-11-23 13:35:37 +01:00
Jérôme Lebleu
f7b591840c [enh] Add 'output_directory' and 'no_compress' arguments to backup_create 2014-11-17 10:59:43 +01:00
Jérôme Lebleu
fdb51ac200 [enh] Allow to set custom backup archive name 2014-11-06 02:41:12 +01:00
Jérôme Lebleu
c594ce03a6 [enh] Manage local backup archive and extend backup_restore 2014-11-05 00:17:52 +01:00
Jérôme Lebleu
d1cb0b0d80 [enh] Add basic 'list' and 'info' actions to the backup 2014-11-05 00:17:52 +01:00
Jérôme Lebleu
c3cadc1d3c [enh] Implement compression and add ignore_apps argument to backup_backup 2014-11-05 00:17:52 +01:00
kload
fe9ee97774 [enh] Warn user about unbackup/unrestored apps 2014-10-26 01:05:18 +02:00