mirror of
https://github.com/YunoHost-Apps/freshrss_ynh.git
synced 2024-09-03 18:36:33 +02:00
dcdbeb73a5
* 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>
17 lines
406 B
Bash
Executable file
17 lines
406 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -a
|
|
source /usr/share/yunohost/helpers
|
|
|
|
app=$1
|
|
new_users=$2
|
|
|
|
if [[ "${0//.\/50-}" = "$app" ]]; then
|
|
install_dir=$(ynh_app_setting_get --app=$app --key=install_dir)
|
|
|
|
for user in $(echo "$new_users" | sed "s/,/ /g")
|
|
do
|
|
user_token=$(ynh_string_random)
|
|
sudo -u $app $install_dir/cli/create-user.php --user $user --language en --token $user_token
|
|
done
|
|
fi
|