diff --git a/set_app_domain.py b/set_app_domain.py
index 342b33910c4160f7a9b0592bf7ba01e28d953ac1..a4662bbd9e5b4ff9d7086db9ecc723986da7a44a 100755
--- a/set_app_domain.py
+++ b/set_app_domain.py
@@ -196,17 +196,11 @@ class SetAppDomain():
                 'python3 %s %s site_url="%s"' % (os.path.join(ms_path, 'scripts', 'mssiteconfig.py'), instance, new_url),
                 # reset all local resources managers
                 'python3 %s %s local' % (os.path.join(ms_path, 'scripts', 'reset_service_resources.py'), instance),
-                # change configuration of celerity on MS side
-                'sed -i "s@\'url\': \'\\(http[s]*\\)://.*\',@\'url\': \'\\1://%s\',@" /etc/celerity/config.py' % new_domain,
-                'sed -i "s@SERVER_URL.*@SERVER_URL = \'%s:6200\'@" /etc/celerity/config.py' % new_url,
+                # change configuration of celerity in MS and in workers
+                'python3 %s update %s' % (os.path.join(ms_path, 'scripts', 'celerity_config_updater.py'), instance),
                 # restart ms
                 'mscontroller.py restart -u %s' % instance,
             ]
-            worker_ips = utils.get_conf('CELERITY_WORKER_IP') or '127.0.1.1'
-            # change configuration of celerity on worker side
-            for worker_ip in worker_ips.split(','):
-                cmds.append('rsync -avz /etc/celerity/config.py root@%s:/etc/celerity/config.py' % worker_ip)
-                cmds.append('ssh root@%s service celerity-workers restart' % worker_ip)
             utils.run_commands(cmds)
         except Exception as e:
             log('Unable to set domain in MS database and Celerity config:\n%s' % e)