1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/freshrss_ynh.git synced 2024-09-03 18:36:33 +02:00
freshrss_ynh/hooks/post_user_create
Éric Gaspar dcdbeb73a5
Version 2 (#163)
* v2

* v2

* Auto-update README

* Update manifest.toml

* cleaning

* Update upgrade

* manifest: we probably want actual bools for permissions auth_header / show_tile / protected

* "additional_urls" should be a list

* Update manifest.toml

* cleaning

* PHP 8.1 (security fixes) (#165)

* Update to php8.1

* Auto-update README

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
Co-authored-by: lapineige <lapineige@users.noreply.github.com>
2023-06-29 19:08:38 +02:00

11 lines
289 B
Bash
Executable file

#!/usr/bin/env bash
set -a
source /usr/share/yunohost/helpers
app="${0//.\/50-}"
install_dir=$(ynh_app_setting_get --app=$app --key=install_dir)
username=$1
user_token=$(ynh_string_random)
sudo -u $app $install_dir/cli/create-user.php --user $username --language en --token $user_token