crime to Level
This commit is contained in:
@@ -2,8 +2,8 @@ import os
|
||||
import time
|
||||
import pwd
|
||||
|
||||
STATE_FILE = "/home/crime5/.timer/timer_state.txt"
|
||||
END_STATE = "/home/crime5/.timer/end_state.txt"
|
||||
STATE_FILE = "/home/level5/.timer/timer_state.txt"
|
||||
END_STATE = "/home/level5/.timer/end_state.txt"
|
||||
|
||||
|
||||
def drop_privileges(user):
|
||||
@@ -21,7 +21,7 @@ def countdown(seconds):
|
||||
f.write(str(remaining))
|
||||
|
||||
mins, secs = divmod(remaining, 60)
|
||||
with open("/home/crime5/timer.txt", "w") as f:
|
||||
with open("/home/level5/timer.txt", "w") as f:
|
||||
f.write(f"{mins:02d}:{secs:02d}")
|
||||
|
||||
time.sleep(1)
|
||||
@@ -36,5 +36,5 @@ def countdown(seconds):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
drop_privileges("crime5")
|
||||
drop_privileges("level5")
|
||||
countdown(600)
|
||||
|
||||
Reference in New Issue
Block a user