#!/usr/bin/perl
# cpanel - autofixer2/cp_clear_packman_cache        Copyright(c) 2016 cPanel, Inc.
#                                                           All rights Reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited

use strict;

my $hooksym = '/etc/yum/universal-hooks/posttrans/cp_clear_packman_cache';

if ( -l $hooksym ) {
    print "Removing stale universal hook cp_clear_packman_cache\n";
    unlink $hooksym;
    if ( -l $hooksym ) {
        warn "Could not unlink($hooksym): $!\n";
    }
}
