Browse Source

Aaded upgrade.py

master
Englebert 3 years ago
parent
commit
ba67973a03
  1. 15
      upgrade.py

15
upgrade.py

@ -0,0 +1,15 @@
#!/usr/bin/python3
import requests
import sys
### print (sys.argv)
### print(len(sys.argv))
if len(sys.argv) < 3:
print("Invalid parameters\n")
exit
filename = sys.argv[2]
url = sys.argv[1]
files = {'file': open(filename, 'rb')}
final_resp = requests.post(url, files=files)
Loading…
Cancel
Save