@@ -40,14 +40,15 @@ sub run {
4040 $instance -> ssh_assert_script_run(" sudo zypper refresh-services --force" , timeout => 180);
4141
4242 # Disable maintenance updates for the migration as directory is not available during it
43- $instance -> ssh_script_run(" sudo sudo sed -i 's/^enabled=1/enabled=0/' /etc/zypp/repos.d/SUSE_Maintenance_*" );
43+ # $instance->ssh_script_run("sudo sudo sed -i 's/^enabled=1/enabled=0/' /etc/zypp/repos.d/SUSE_Maintenance_*");
44+ $instance -> ssh_script_run(" sudo sudo rm -rf /etc/zypp/repos.d/SUSE_Maintenance_*" );
4445
4546 # Reboot to run the migration
4647 $instance -> softreboot(timeout => 3600);
4748 validate_version($instance );
4849
4950 # Re-enable maintenance updates for the migration
50- $instance -> ssh_script_run(" sudo sudo sed -i 's/^enabled=0/enabled=1/' /etc/zypp/repos.d/SUSE_Maintenance_*" );
51+ # $instance->ssh_script_run("sudo sudo sed -i 's/^enabled=0/enabled=1/' /etc/zypp/repos.d/SUSE_Maintenance_*");
5152
5253 # Try to install aws-cli and azure-cli as they were removed for the migration
5354 $instance -> ssh_script_run(" sudo zypper -n ref" , timeout => 1800) if (is_ec2());
@@ -70,7 +71,8 @@ sub run {
7071 $instance -> ssh_assert_script_run(" sudo zypper refresh-services --force" , timeout => 180);
7172
7273 # Disable maintenance updates for the migration as directory is not available during it
73- $instance -> ssh_script_run(" sudo sudo sed -i 's/^enabled=1/enabled=0/' /etc/zypp/repos.d/SUSE_Maintenance_*" );
74+ # $instance->ssh_script_run("sudo sudo sed -i 's/^enabled=1/enabled=0/' /etc/zypp/repos.d/SUSE_Maintenance_*");
75+ $instance -> ssh_script_run(" sudo sudo rm -rf /etc/zypp/repos.d/SUSE_Maintenance_*" );
7476
7577 # Reboot to run the migration
7678 $instance -> softreboot(timeout => 3600);
0 commit comments