mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
Added a few comments for clarification
This commit is contained in:
@@ -85,6 +85,7 @@ if newestWebFile['timestamp'] > newestDirFile['timestamp']:
|
|||||||
else:
|
else:
|
||||||
print("Found newer version of GUI")
|
print("Found newer version of GUI")
|
||||||
print(f"Downloading {newestWebFile['filename']} from {url}")
|
print(f"Downloading {newestWebFile['filename']} from {url}")
|
||||||
|
#=====ATTEMPT DOWNLOAD AND INSTALL=========
|
||||||
subprocess.call(["curl", "-o", f"{filePath}{newestWebFile['filename']}", f"{url}{newestWebFile['filename']}"])
|
subprocess.call(["curl", "-o", f"{filePath}{newestWebFile['filename']}", f"{url}{newestWebFile['filename']}"])
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
@@ -112,7 +113,7 @@ if newestWebFile['timestamp'] > newestDirFile['timestamp']:
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"{e}\nInstallation failed. Please Try again.")
|
print(f"{e}\nInstallation failed. Please Try again.")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
#=========ATTEMPT TO RESTART GUI==========
|
||||||
try:
|
try:
|
||||||
print("Killing current GUI process")
|
print("Killing current GUI process")
|
||||||
os.system("pgrep java | xargs kill")
|
os.system("pgrep java | xargs kill")
|
||||||
|
|||||||
Reference in New Issue
Block a user