mirror of
https://github.com/YunoHost-Apps/mautrix_whatsapp_ynh.git
synced 2024-09-03 19:46:01 +02:00
config set after service start
This commit is contained in:
parent
febe7bab2f
commit
07d4adb8e0
1 changed files with 11 additions and 4 deletions
|
@ -284,13 +284,14 @@ ynh_add_config --template="../conf/config.yaml" --destination="$final_path/confi
|
||||||
chmod 400 "$final_path/config.yaml"
|
chmod 400 "$final_path/config.yaml"
|
||||||
chown $app:$app "$final_path/config.yaml"
|
chown $app:$app "$final_path/config.yaml"
|
||||||
|
|
||||||
# apply_permissions to have correct syntax in config file
|
|
||||||
listrelay=$listrelay_
|
listrelay=$listrelay_
|
||||||
listuser=$listuser_
|
listuser=$listuser_
|
||||||
listadmin=$listadmin_
|
listadmin=$listadmin_
|
||||||
yunohost app config set $app main.permissions.listrelay -v "$listrelay"
|
# MIGRATION from previous version without config panel -> config panel does not exist yet, so we upgrade the config after starting the systemd service
|
||||||
yunohost app config set $app main.permissions.listuser -v "$listuser"
|
# apply_permissions to have correct syntax in config file
|
||||||
yunohost app config set $app main.permissions.listadmin -v "$listadmin"
|
#yunohost app config set $app main.permissions.listrelay -v "$listrelay"
|
||||||
|
#yunohost app config set $app main.permissions.listuser -v "$listuser"
|
||||||
|
#yunohost app config set $app main.permissions.listadmin -v "$listadmin"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REGISTER SYNAPSE APP-SERVICE
|
# REGISTER SYNAPSE APP-SERVICE
|
||||||
|
@ -341,6 +342,12 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1
|
||||||
# Start a systemd service
|
# Start a systemd service
|
||||||
ynh_systemd_action --service_name=$app --action="start"
|
ynh_systemd_action --service_name=$app --action="start"
|
||||||
|
|
||||||
|
# MIGRATION from previous version without config panel -> config panel does not exist yet, so we upgrade the config after starting the systemd service
|
||||||
|
# apply_permissions to have correct syntax in config file
|
||||||
|
yunohost app config set $app main.permissions.listrelay -v "$listrelay"
|
||||||
|
yunohost app config set $app main.permissions.listuser -v "$listuser"
|
||||||
|
yunohost app config set $app main.permissions.listadmin -v "$listadmin"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue