chore: check if iso-update dir exists
This commit is contained in:
parent
d1bd93a980
commit
e9e570df48
1 changed files with 4 additions and 3 deletions
1
akshara
1
akshara
|
@ -109,6 +109,7 @@ def get_server_timestamp():
|
|||
|
||||
def update_system():
|
||||
os.chdir('/mnt')
|
||||
if os.path.isdir('/mnt/iso-update'):
|
||||
for f in os.listdir('/mnt/iso-update'):
|
||||
if f != 'update.iso':
|
||||
exec('rm', '-f', f)
|
||||
|
|
Loading…
Reference in a new issue