Commit graph

47 commits

Author SHA1 Message Date
Alexandre Aubin
5de9e4fe6a Yolorework the repo dir structure 2021-11-10 17:56:02 +01:00
Alexandre Aubin
0b4aa81f8c Merge branch 'migrate_to_bullseye' into bullseye 2021-10-13 15:12:56 +02:00
Alexandre Aubin
93cc413f4a helpers: lint/reformat with shfmt -bn -i 4 -w $FILE 2021-10-06 16:01:53 +02:00
Alexandre Aubin
624ce3462b Merge branch 'migrate_to_bullseye' into bullseye 2021-06-12 19:05:44 +02:00
yalh76
16f1968ae7 Updating requirements
As those functions use ynh_add_config
2021-06-10 15:13:49 +02:00
Alexandre Aubin
0d8b8f6ca3 (Re)Drop legacy --others_var 2021-06-07 19:22:15 +02:00
Alexandre Aubin
ec017d7ea5
Tweak systemd action pending message : echo -n is pointless 2021-05-29 16:48:19 +02:00
ericgaspar
fc02caea2e
Yunohost -> YunoHost 2021-05-24 18:02:13 +02:00
yalh76
19d2901d46 Manage case of service already stopped 2021-05-06 13:05:21 +02:00
Alexandre Aubin
f84b6535f3
Merge pull request #1167 from Salamandar/fix_helper_doc
helper doc : Fix all doc (mostly)
2021-03-17 15:41:26 +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
Kay0u
5539751ca4
fix others_var 2021-03-08 17:38:10 +01:00
f0d7eba64a helper doc fixes : systemd 2021-03-03 11:17:59 +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
Kay0u
8f7ced35a5
fix ynh_systemd_action in case of service fails 2021-02-25 11:16:34 +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
a618ae4f4d
Merge pull request #1118 from YunoHost/normalize-conf-template-handling
Normalize conf template handling for nginx, php-fpm, systemd and fail2ban using ynh_add_config
2021-01-31 16:15:45 +01:00
Alexandre Aubin
9d0bda548a 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-01-31 11:57:34 +01:00
Alexandre Aubin
c023b177fe Normalize conf template handling for nginx, php-fpm, systemd and fail2ban using ynh_add_config 2021-01-23 04:33:28 +01:00
Alexandre Aubin
c979d1e640 Do not display a huge wall of boring logs while waiting for the service to start 2020-10-20 14:21:27 +02:00
Alexandre Aubin
6637c8a84d Tell systemctl to stfu about creating symlinks when enabling/disabling services 2020-05-23 13:52:08 +02:00
Alexandre Aubin
bdbf1822c7 Add --quiet, otherwise lines like -- Logs being will be thought as an arg by getopts 2020-05-22 13:56:50 +02:00
Alexandre Aubin
2bcfb5a15a Don't display the hostname when calling journalctl, this takes horizontal space for nothing 2020-05-22 13:40:53 +02:00
Maniack Crudelis
f09a49ec2a
Merge branch 'stretch-unstable' into patch-1 2020-04-28 00:14:51 +02:00
Kayou
8501943f9c
Merge branch 'stretch-unstable' into clean_helpers 2020-04-27 23:40:27 +02:00
Maniack Crudelis
b6daf0c448
ynh_die instead of false 2020-04-25 00:38:59 +02:00
Maniack Crudelis
a75af4896c
follow=name
Co-Authored-By: Kayou <pierre@kayou.io>
2020-04-25 00:35:39 +02:00
Maniack Crudelis
ba8514fb67 Fix regressions 2020-04-21 16:18:04 +02:00
Maniack Crudelis
03379007b4 Update YunoHost version requirements 2020-04-21 14:48:52 +02:00
Maniack Crudelis
6fb1e62a4c Clean getopts arguments 2020-04-20 21:00:45 +02:00
Maniack Crudelis
3b653994c7 Standardize helper comments 2020-04-20 20:58:17 +02:00
Maniack Crudelis
e64eb3478e Unfold AND OR 2020-04-20 15:24:07 +02:00
Maniack Crudelis
b0398ae6dc Use long arguments instead of short ones 2020-04-20 15:20:31 +02:00
Maniack Crudelis
57061b8e1d Unfold if-then when more than one line 2020-04-19 20:31:06 +02:00
Maniack Crudelis
80964a1312 Standardize tabulations 2020-04-19 20:03:55 +02:00
Maniack Crudelis
1dd4a73e17 Replace declare -Ar by local A for args_array 2020-04-19 19:10:39 +02:00
Maniack Crudelis
23664c5036 Wait for fail2ban to reload 2020-04-19 18:15:58 +02:00
Maniack Crudelis
5777a266a2
Update systemd 2020-04-18 12:22:32 +02:00
tituspijean
34a12c1427
[enh] ynh_add_systemd_config comments
Some typos fixes should be propagated to the fail2ban helper too.
2020-04-18 11:07:20 +02:00
tituspijean
9bd6d39a79
[enh] add dynamic variables to systemd helper 2020-04-18 10:53:22 +02:00
yalh76
d35dcbe968
adaptation for various actions 2020-01-08 19:57:32 +01:00
Alexandre Aubin
97e5d3b992 Remove those random sudo which are useless yet triggers LDAP warning when LDAP is in bad state 2019-11-28 00:10:40 +01:00
Alexandre Aubin
6124d1b899 Only run these commands if the variables are not empty 2019-11-16 15:34:38 +01:00
Alexandre Aubin
46310dbb6c Misc fixes in helpers comments to fix/improve autogenerated doc 2019-07-11 22:51:41 +02:00
Alexandre Aubin
7523ef3aed Remove unecessary log messages 2019-05-15 20:00:37 +02:00
Alexandre Aubin
c35aaea945 Move systemd_action in 'systemd' 2019-04-25 20:46:10 +02:00
Alexandre Aubin
eb89fc04b1 Split 'backend' into fail2ban, logrotate, nginx, php, systemd 2019-04-25 20:09:57 +02:00