Laurent Peuch
92a3caa8b2
Merge pull request #373 from YunoHost/enh-phpfpm-helper-php7-stretch
...
Update php-fpm helpers to handle stretch/php7 and a smooth migration
2018-02-08 00:08:40 +01:00
Maniack Crudelis
8e92bb8328
[enh] --verbose for backup during upgrade
2018-02-04 19:26:49 +01:00
Maniack Crudelis
ebdc67e02f
[enh] Allow to disable the backup during the upgrade
2018-02-04 19:21:24 +01:00
Alexandre Aubin
e15ccdf0b7
Microdecison: more weird spaces
2018-01-27 20:06:16 +01:00
Alexandre Aubin
1056977dc6
Microdecision: those weren't space, wtf
2018-01-27 20:03:42 +01:00
Alexandre Aubin
a975e5e684
Improve comment / helper description
2018-01-26 22:21:14 +01:00
Josué Tille
9c4ddcca39
Add service name as arg (optionnal)
2018-01-26 21:17:18 +01:00
Maniack Crudelis
8a51b46d47
[Fix] Fix ynh_restore_upgradebackup
2018-01-22 19:06:37 +01:00
Laurent Peuch
e9c87da028
[fix] previous patch mistakely remove variable name
2018-01-15 22:59:20 +01:00
JimboJoe
3fbcd1f110
Merge branch 'unstable' into default_version
2018-01-11 14:19:47 +01:00
JimboJoe
a62edfd76e
Merge branch 'unstable' into helpers_local_variables
2018-01-10 08:22:33 +01:00
Maniack Crudelis
5289889174
Be nice with set -eu
2018-01-10 00:44:25 +01:00
Maniack Crudelis
3dd6317ae6
Add info
2017-12-22 19:33:47 +01:00
Jimmy Monin
810eaec8c9
Don't backup big data items when BACKUP_CORE_ONLY is set
2017-12-22 19:27:02 +01:00
Maniack Crudelis
421994a3ef
[enh] Tranfert backup_core_only to BACKUP_CORE_ONLY
2017-12-22 19:01:09 +01:00
Maniack Crudelis
542528ab05
Fix broken ynh_replace_string ( #394 )
...
* Fix broken ynh_replace_string
* Replace name for ynh_replace_special_string
2017-12-21 19:19:33 +01:00
Maniack Crudelis
3a3ec7d9b5
[fix/enh] Use local variables
2017-12-17 20:26:52 +01:00
Maniack Crudelis
42f9c8fc18
[fix] Who said I didn't check my code !?
2017-12-11 17:25:28 +01:00
Maniack Crudelis
2685c42ac6
[fix] Only for JimboJoe ;)
2017-12-11 17:23:26 +01:00
Maniack Crudelis
4276aebfa3
[enh] Default version number for ynh_install_app_dependencies
2017-12-10 23:38:09 +01:00
Josue-T
c13c75f3e7
Solve ynh_use_logrotate
...
Actually when we use the command `ynh_use_logrotate /var/log/abcd/` the result in the logrotate conf file is `/opt/yunohost/abcd/logs//.log` witch is not what we want.
2017-12-08 23:04:45 +01:00
Maniack Crudelis
4f62eb5320
Fix upgrade fake package
2017-12-02 16:44:47 +01:00
Maniack Crudelis
17ba10ad92
[fix] Fix helper for old apps without backup script ( #388 )
2017-11-28 19:58:51 +01:00
Alexandre Aubin
7c28ec1c1b
[enh] Adding an app helper to display infos
2017-10-29 23:37:51 +01:00
Alexandre Aubin
dfa7ca28bf
[microdecision] Typo
2017-10-16 21:31:59 +02:00
Maniack Crudelis
0086c8c16a
[fix] match_string: unbound variable ( #379 )
...
* [fix] match_string: unbound variable
* Define local variables at beginning of function
2017-10-07 15:06:00 +02:00
Laurent Peuch
ff4b08ed65
Merge pull request #354 from YunoHost/update_ynh_replace_string
...
[enh] Escape some special character in ynh_replace_string
2017-10-06 15:03:40 +02:00
Laurent Peuch
402517d841
Merge branch 'unstable' into enh_mysql_single-transaction
2017-10-03 22:19:32 +02:00
Maniack Crudelis
e3a4b307f7
Fix double backslash in case of delimiter used
2017-10-03 22:11:24 +02:00
Maniack Crudelis
220c447074
[enh] Handle root path in nginx conf ( #361 )
...
Avoid to put a double slash when the path is /.
That can induce some errors in a nginx config.
2017-09-30 13:01:15 +02:00
Jimmy Monin
330a6fb9a7
Add and use ynh_get_debian_release
2017-09-25 21:59:55 +02:00
Maniack Crudelis
9563d3e5c4
Merge pull request #366 from YunoHost-Apps/enh_comment_ynh_replace_string
...
Complete ynh_replace_string helper comments to mention the possible use of regexps
2017-09-24 19:56:55 +02:00
Jimmy Monin
8590d6b5c6
Update php-fpm helpers to handle stretch/php7 and a smooth migration
2017-09-23 18:45:59 +02:00
Maniack Crudelis
d42cc00a87
[enh] Remove date from sql dump
2017-09-19 01:34:23 +02:00
Jimmy Monin
8a559f2ae1
Make MySQL dumps with a single transaction to ensure backup consistency
2017-09-14 22:12:01 +02:00
Jimmy Monin
f4955341bb
Complete ynh_replace_string helper comments to mention the possible use of regexp
2017-09-05 21:09:24 +02:00
Jimmy Monin
35d4a1001f
Add fail2ban helpers
2017-09-02 18:27:25 +02:00
ariasuni
8e45f960a7
[fix] Use --value="$3" syntax so that $3 can begin with a dash
2017-08-27 03:37:32 +02:00
Maniack Crudelis
bb2424e9b8
[enh] Escape some special character in ynh_replace_string
2017-08-23 17:25:16 +02:00
Alexandre Aubin
88a6c3d83a
Missing parenthesis in helper :|
2017-08-06 02:37:17 +02:00
Maniack Crudelis
f4fabe1edb
Fix syntax error: unexpected end of file ( #337 )
2017-08-02 18:44:32 +02:00
Maniack Crudelis
8f173543bb
Fix syntax error: unexpected end of file ( #338 )
2017-08-02 18:44:16 +02:00
Alexandre Aubin
3a777ccbc7
[microdecision] Renaming ynh_backup_after_failed_upgrade to ynh_restore_upgradebackup
2017-07-28 14:22:04 -04:00
Maniack Crudelis
a006868cbe
New helpers ynh_add_systemd_config and ynh_remove_systemd_config ( #287 )
...
* New helpers ynh_add_systemd_config and ynh_remove_systemd_config
Standard file for systemd service.
* ynh_subsistute_char was renamed ynh_replace_string
* Upgrade helpers
* Add some description of which keywords are replaced by which variable
2017-07-28 19:21:22 +02:00
Maniack Crudelis
80242a8edc
New helpers ynh_add_nginx_config and ynh_remove_nginx_config ( #285 )
...
* New helpers ynh_add_nginx_config and ynh_remove_nginx_config
Standard configuration of nginx
Use local files stored in conf/, so it's still possible to use a specific config
* ynh_substitute_char was renamed ynh_replace_string
* ynh_compare_checksum_config -> ynh_backup_if_checksum_is_different
* Upgrade helpers
* Add some description of which keywords are replaced by which variable
2017-07-28 19:11:28 +02:00
Maniack Crudelis
bf45cd7c4b
New helpers ynh_backup_after_failed_upgrade and ynh_backup_before_upg… ( #289 )
...
* New helpers ynh_backup_after_failed_upgrade and ynh_backup_before_upgrade
Create a backup at the beginning of upgrade script.
Then, if the upgrade script failed, remove the app and restore it.
The backup is kept, to provide a way to restore if the upgrade is finally a bad thing.
* Implement @JimboJoe's comments
* Indentation
* --ignore-hooks -> --ignore-system
2017-07-28 18:53:43 +02:00
Maniack Crudelis
390835e96a
[fix] Logrotate append ( #328 )
...
* [fix] Logrotate append
* Typo fix by JimboJoe
2017-07-24 02:50:48 +02:00
Laurent Peuch
f3a247442f
Merge pull request #321 from YunoHost/helper_autopurge
...
[enh] New helper autopurge
2017-07-17 03:47:22 +02:00
Maniack Crudelis
9782f05887
New helpers ynh_add_fpm_config and ynh_remove_fpm_config ( #284 )
...
* New helpers ynh_add_fpm_config and ynh_remove_fpm_config
Standard configuration of php-fpm.
Use local files stored in conf/, so it's still possible to use a specific config
* ynh_substitute_char was renamed to ynh_replace_string
* Update checksum command and quiet the second secure_remove
* Fix helpers name
2017-07-10 17:48:32 +02:00
Maniack Crudelis
3320aee86e
[enh] New helper autopurge
...
Add an autoremove with purge.
Some deb packages, like transmission let a lot of shit behind itself.
In case of remove then install, transmission doesn't work anymore.
2017-06-17 19:22:10 +02:00