File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 33import time
44import 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 )
77while 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
1516upstate = open ("/var/astpk/upstate" )
1617line = upstate .readline ()
1718upstate .close ()
1819if "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)" )
You can’t perform that action at this time.
0 commit comments