-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a120281
commit f9f257a
Showing
48 changed files
with
2,312 additions
and
1,071 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import os | ||
import sys | ||
import json | ||
import time | ||
import traceback | ||
|
||
sys.path.append("/var/www/html/lib/") | ||
from helper import * | ||
import helper as h | ||
|
||
file_name = os.path.basename(__file__) | ||
|
||
try: | ||
def file_update(file_name): | ||
txt = http_get(h.update_base_url+file_name) | ||
write_to_file(h.app_base_path+file_name, txt) | ||
log(INFO, file_name+" upgrade OK") | ||
|
||
def version_file_update(): | ||
version_file = "version.txt" | ||
log_and_run(file_update, version_file) | ||
|
||
def update_file_update(): | ||
update_file = "update.py" | ||
log_and_run(file_update, update_file) | ||
|
||
def run(): | ||
log_and_run(version_file_update) | ||
log_and_run(update_file_update) | ||
|
||
|
||
|
||
#Ana Fonksiyon | ||
if __name__ == "__main__": | ||
|
||
preload(file_name) | ||
|
||
log_and_run(run) | ||
|
||
log_and_run(endload) | ||
|
||
|
||
|
||
except Exception as e: | ||
fn = os.path.basename(__file__) | ||
root_ex(fn, e) |
Oops, something went wrong.