mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
apps: Fix edge case in change_url where old_nginx_conf_backup could be None
This commit is contained in:
parent
95b80b056f
commit
e1d62a1910
1 changed files with 3 additions and 2 deletions
|
@ -508,8 +508,9 @@ def app_change_url(operation_logger, app, domain, path):
|
|||
new_nginx_conf_path
|
||||
):
|
||||
rm(new_nginx_conf_path, force=True)
|
||||
write_to_file(old_nginx_conf_path, old_nginx_conf_backup)
|
||||
service_reload_or_restart("nginx")
|
||||
if old_nginx_conf_backup:
|
||||
write_to_file(old_nginx_conf_path, old_nginx_conf_backup)
|
||||
service_reload_or_restart("nginx")
|
||||
|
||||
# restore values modified by app_checkurl
|
||||
# see begining of the function
|
||||
|
|
Loading…
Add table
Reference in a new issue