Commit graph

1973 commits

Author SHA1 Message Date
Kay0u
dc6033c399
python3 way to get a list of dict keys 2021-03-15 14:10:13 +01:00
Alexandre Aubin
07f8d6d7af
ynh_clean_check_starting: Let's not trigger an error when vars aren't set 2021-03-14 18:47:33 +01:00
Alexandre Aubin
ce04570bfd helpers: Simplify manifest path / parsing 2021-03-12 23:18:25 +01:00
Alexandre Aubin
61feb39c96 Merge branch 'hotfixes-4.1.7.4' into dev 2021-03-11 03:10:54 +01:00
Alexandre Aubin
41b5a12393 Enforce permissions for /home/yunohost.backup and .conf 2021-03-11 03:07:16 +01:00
Alexandre Aubin
b85d959d7e ynh_install_n: No need to mkdir ../conf 2021-03-08 20:56:32 +01:00
Éric Gaspar
ad602ee0a1
Upgrade n (#1178)
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2021-03-08 20:55:45 +01:00
Alexandre Aubin
db93b82b23 ynh_setup_source: add a check that we could actually parse SOURCE_URL 2021-03-08 18:41:54 +01:00
Alexandre Aubin
9e7eda681b ynh_install_n: put the source descriptor file in the appropriate dir during backup/restore 2021-03-08 18:37:53 +01:00
Kay0u
5539751ca4
fix others_var 2021-03-08 17:38:10 +01:00
Alexandre Aubin
9b13c95f77 Re-add --others_var in fail2ban and systemd helpers for backward compatibility... 2021-03-02 19:54:24 +01:00
Alexandre Aubin
6ce02270ae Gotta escape \ during ynh_replace_vars 2021-03-02 02:02:10 +01:00
Kay0u
05969184fe fix ynh_systemd_action in case of service fails 2021-03-02 02:02:10 +01:00
Alexandre Aubin
d12f403fe3 Fix permission helper doc format 2021-03-02 02:02:10 +01:00
yalh76
2402a1db39 Fixing ___APP__ 2021-03-02 02:02:09 +01:00
yalh76
9bbc3b72ae Make grep lazy 2021-03-02 02:02:09 +01:00
yalh76
2728801d17 Force destination to be replaced 2021-03-02 02:02:08 +01:00
Alexandre Aubin
a43cd72c72 Fix ynh_replace_vars again, mystical bash is mystic... 2021-03-02 02:00:45 +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
yalh76
c86d432783 Fixing ___APP__ 2021-02-28 18:56:30 +01:00
yalh76
fcea5a6af0 Make grep lazy 2021-02-28 13:38:10 +01:00
yalh76
c6d14219cc Force destination to be replaced 2021-02-27 20:39:55 +01:00
Alexandre Aubin
cc6cc1860a Do not backup damn cron jobs ... they will automatically be regenerated by the regenconf 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
675c4d0eea Fix permission helper doc format 2021-02-25 16:57:57 +01:00
Alexandre Aubin
33f291be96 Fix ynh_replace_vars again, mystical bash is mystic... 2021-02-25 16:36:28 +01:00
Alexandre Aubin
3be6b822eb
Merge pull request #1173 from YunoHost/enh-ynh_systemd_action
[fix] Automatically call ynh_clean_check_starting when ynh_systemd_action fails
2021-02-25 16:00:31 +01:00
Kay0u
47420c6232
fix multimedia helper 2021-02-25 12:40:49 +01:00
Kay0u
1d3380415e
add missing getops 2021-02-25 11:17:46 +01:00
Kay0u
8f7ced35a5
fix ynh_systemd_action in case of service fails 2021-02-25 11:16:34 +01:00
Alexandre Aubin
53576a43e1
Merge pull request #1160 from YunoHost/use-jq-in-helpers
Use jq / output-as json to get info from yunohost commands instead of scraping with grep
2021-02-25 04:20:24 +01:00
Alexandre Aubin
d0088053fb
Merge pull request #1171 from YunoHost/fix-replace-string-escape
Gotta escape \ during ynh_replace_vars
2021-02-23 14:24:51 +01:00
Alexandre Aubin
5ba94f4add
Merge pull request #1172 from YunoHost/fix_ynh_add_config_basedir
Define YNH_APP_BASEDIR to be able to properly point to conf folder depending on the app script we're running
2021-02-23 14:24:43 +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
59da04e92b Gotta escape \ during ynh_replace_vars 2021-02-22 23:46:12 +01:00
Alexandre Aubin
29b511f5e3 Fix multimedia hook if not media directory yet 2021-02-22 23:42:52 +01:00
Alexandre Aubin
1adff77e3a Add multimedia helpers and hooks 2021-02-22 21:01:23 +01:00
Alexandre Aubin
cd4fdb2b61 Mysql is a fucking joke (... trying to fix the mysql issue on RPi ...) 2021-02-21 05:23:52 +01:00
Alexandre Aubin
c7c1eaca4e Mysql is a fucking joke (... trying to fix the mysql issue on RPi ...) 2021-02-21 05:04:06 +01:00
Alexandre Aubin
e7db40e9c8
Merge branch 'dev' into domain-remove-remove-apps 2021-02-13 20:43:46 +01:00
Alexandre Aubin
6efbc03d43 Remove getopts from ynh_exec_as 2021-02-03 16:58:23 +01:00
Alexandre Aubin
ac38e53a7c Remove getopts from ynh_exec_as 2021-02-03 16:50:04 +01:00
Kay0u
bfd7257a8c
fix linter, remove allow_failure for corresponding tests 2021-02-02 16:16:07 +01:00
Kayou
ce1045a26a
fix the postinstall with double quotes 2021-02-02 11:10:52 +01:00
Alexandre Aubin
6500ac01ae Make sure that dir exists :/ 2021-02-02 05:55:19 +01:00
yunohost-bot
c4439110e1 [CI] Format code 2021-02-02 03:37:40 +00:00
Alexandre Aubin
29fe7c3103 Do not ynh_die if systemctl action fails, because we don't want to exit in the middle of a remove script ... instead, return a non-zero code which should trigger script failure only if set -eu is enabled 2021-02-02 04:13:42 +01:00
ericgaspar
6b2d76dddd Move ynh_exec_as helper to user section 2021-02-02 04:13:42 +01:00
ericgaspar
b94ff1c200 Add ynh_exec_as to official 2021-02-02 04:13:42 +01:00