mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-18 03:01:01 +01:00
9 lines
303 B
Python
Executable File
9 lines
303 B
Python
Executable File
import os
|
|
import subprocess
|
|
rootdir = '/home/repo.cyberpanel.net/public_html/epel/Packages'
|
|
|
|
for subdir, dirs, files in os.walk(rootdir):
|
|
for file in files:
|
|
if file.endswith('.rpm'):
|
|
command = 'rpm --resign %s/%s' % (subdir, file)
|
|
subprocess.call(command, shell=True) |