Update.
This commit is contained in:
+4
-4
@@ -1,10 +1,8 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
import pathlib
|
||||
import sys
|
||||
import pathlib
|
||||
|
||||
import os
|
||||
|
||||
os.chdir("/root")
|
||||
|
||||
@@ -16,7 +14,9 @@ if not pathlib.Path(".welcome.txt").exists():
|
||||
os.system("python3 -m venv --prompt '' .venv")
|
||||
os.system("cp -r /opt/bootstrap/root/.* /root")
|
||||
os.system("cp /opt/bootstrap/.welcome.txt /root/.welcome.txt")
|
||||
pathlib.Path(".bashrc").write_text(pathlib.Path(".bashrc").read_text() + "\n" + "source .venv/bin/activate")
|
||||
pathlib.Path(".bashrc").write_text(
|
||||
pathlib.Path(".bashrc").read_text() + "\n" + "source .venv/bin/activate"
|
||||
)
|
||||
os.environ["SNEK"] = "1"
|
||||
|
||||
if pathlib.Path(".welcome.txt").exists():
|
||||
|
||||
Reference in New Issue
Block a user