2020-11-26 18:47:34 +01:00
|
|
|
#!/bin/bash
|
2021-09-09 11:36:07 +02:00
|
|
|
app=APPNAMETOCHANGE
|
2020-11-26 18:47:34 +01:00
|
|
|
|
|
|
|
# Source YunoHost helpers
|
|
|
|
source /usr/share/yunohost/helpers
|
2021-04-12 15:17:53 +02:00
|
|
|
source /etc/yunohost/apps/$app/scripts/_common.sh
|
2020-11-26 18:47:34 +01:00
|
|
|
|
|
|
|
# Retrieve arguments
|
|
|
|
username=$1
|
|
|
|
mail=$2
|
|
|
|
password=$3 # Clear password
|
|
|
|
firstname=$4
|
|
|
|
lastname=$5
|
|
|
|
final_path=$(ynh_app_setting_get "$app" final_path)
|
|
|
|
|
2020-11-26 19:01:52 +01:00
|
|
|
# Deactivate the user in aeneria
|
2020-11-26 18:47:34 +01:00
|
|
|
cd "$final_path" && ynh_exec_as $app php7.3 bin/console aeneria:user:deactivate "$mail" -n
|