Skip to content

Commit 40af98e

Browse files
authored
small changes to update script
1 parent 30ec9b1 commit 40af98e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

update.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@
33
import time
44
import subprocess
55

6-
snapshot = subprocess.check_output("/usr/bin/ast c", shell=True)
6+
snapshot = subprocess.check_output("/usr/local/sbin/ast c", shell=True)
77
while True:
8-
if os.path.exists(f"/.snapshots/snapshot-chr{snapshot}"):
8+
if os.path.exists(f"/.snapshots/rootfs/snapshot-chr{snapshot}"):
99
time.sleep(20)
1010
else:
11-
os.system("/usr/bin/ast clone $(/usr/bin/ast c)")
12-
os.system("/usr/bin/ast auto-upgrade")
11+
os.system("/usr/local/sbin/ast clone $(/usr/local/sbin/ast c)")
12+
os.system("/usr/local/sbin/ast auto-upgrade")
13+
os.system("/usr/local/sbin/ast base-update")
1314
break
1415

1516
upstate = open("/var/astpk/upstate")
1617
line = upstate.readline()
1718
upstate.close()
1819
if "1" not in line:
19-
os.system("/usr/bin/ast deploy $(/usr/bin/ast c)")
20+
os.system("/usr/local/sbin/ast deploy $(/usr/local/sbin/ast c)")

0 commit comments

Comments
 (0)