Commit 86dabb77 by root

clenup X fix

parent f953c2d8
...@@ -204,8 +204,13 @@ class Context(BaseContext): ...@@ -204,8 +204,13 @@ class Context(BaseContext):
def cleanup(): def cleanup():
filelist = ([ filelist = ([
'/root/.bash_history', '/home/cloud/.bash_history', '/root/.bash_history', '/home/cloud/.bash_history',
'/root/.Xauthority', '/home/cloud/.Xauthority',
'/root/.ICEauthority', '/home/cloud/.ICEauthority',
] + glob('/etc/ssh/ssh_host_*')) ] + glob('/etc/ssh/ssh_host_*'))
dirlist = ('/root/.ssh', '/home/cloud/.ssh') dirlist = ('/root/.ssh', '/home/cloud/.ssh',
'/root/.firefox', '/home/cloud/.firefox',
'/root/.cache', '/home/cloud/.cache',
'/root/snap', '/home/cloud/snap')
for d in dirlist: for d in dirlist:
rmtree(d, ignore_errors=True) rmtree(d, ignore_errors=True)
...@@ -217,8 +222,6 @@ class Context(BaseContext): ...@@ -217,8 +222,6 @@ class Context(BaseContext):
with open('/etc/network/interfaces', 'w') as f: with open('/etc/network/interfaces', 'w') as f:
f.write('auto lo\niface lo inet loopback\n') f.write('auto lo\niface lo inet loopback\n')
# subprocess.call(('/usr/bin/ssh-keygen', '-A'))
@staticmethod @staticmethod
def start_access_server(): def start_access_server():
try: try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment