Skip to content

Commit 7747368

Browse files
committed
Update nginx proxy version conf only on change
Signed-off-by: Riddhesh Sanghvi <[email protected]>
1 parent 2a17500 commit 7747368

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

php/EE/Runner.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -857,8 +857,10 @@ private function trigger_migration( $version ) {
857857
if ( ! $this->migrate() ) {
858858
EE::error( 'There was some error while migrating. Please check logs.' );
859859
}
860-
Option::set( 'version', $version );
861-
\EE\Service\Utils\set_nginx_proxy_version_conf();
860+
if ( $version !== Option::get( 'version' ) ) {
861+
Option::set( 'version', $version );
862+
\EE\Service\Utils\set_nginx_proxy_version_conf();
863+
}
862864
}
863865

864866
/**

0 commit comments

Comments
 (0)