1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mautrix_signal_ynh.git synced 2024-09-03 19:46:07 +02:00

Fix if_botuser

This commit is contained in:
Salamandar 2024-02-26 17:41:47 +01:00
parent 0a7c8ecfee
commit e2f1ae5ab4
2 changed files with 7 additions and 1 deletions

View file

@ -17,7 +17,7 @@ source /usr/share/yunohost/helpers
bot_synapse_adm=true
encryption=false
if [[ -z "${botusers}" ]] || [ "$botusers" == "admin" ]; then
if [[ -z "$botusers" ]] || [ "$botusers" == "admin" ]; then
if_botusers="# "
else
if_botusers=""

View file

@ -49,6 +49,12 @@ chown -R "$app:$app" "$install_dir"
#=================================================
ynh_script_progression --message="Updating a configuration file..." --weight=2
if [[ -z "$botusers" ]] || [ "$botusers" == "admin" ]; then
if_botusers="# "
else
if_botusers=""
fi
ynh_add_config --template="config.yaml" --destination="$install_dir/config.yaml"
chmod 400 "$install_dir/config.yaml"