diff --git a/data/apps/helpers b/data/apps/helpers new file mode 100644 index 000000000..7473c96cc --- /dev/null +++ b/data/apps/helpers @@ -0,0 +1,7 @@ +# -*- shell-script -*- + +# TODO : use --regex to validate against a namespace +for helper in $(run-parts --list /usr/share/yunohost/apps/helpers.d 2>/dev/null) ; do + [ -r $helper ] && . $helper || true +done + diff --git a/data/apps/helpers.d/password b/data/apps/helpers.d/password new file mode 100644 index 000000000..0087921c4 --- /dev/null +++ b/data/apps/helpers.d/password @@ -0,0 +1,3 @@ +ynh_password() { + echo $(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d '[A-Za-z0-9]' | sed -n 's/\(.\{24\}\).*/\1/p') +} diff --git a/debian/install b/debian/install index 405448e5d..4c91fbd4e 100644 --- a/debian/install +++ b/debian/install @@ -2,5 +2,6 @@ bin/* /usr/bin/ data/actionsmap/* /usr/share/moulinette/actionsmap/ data/hooks/* /usr/share/yunohost/hooks/ data/other/* /usr/share/yunohost/yunohost-config/moulinette/ +data/apps/* /usr/share/yunohost/apps/ lib/yunohost/*.py /usr/lib/moulinette/yunohost/ locales/* /usr/lib/moulinette/yunohost/locales/