diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 518fa9f9d64dfa8f9d20842362fb124a61f0d35b..7d9010d8c1c6fbf2333af022d2a34dd5f3170d39 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ image: python:3.9-buster before_script: + - apt-get update - apt install -y xvfb libssl-dev firefox-dev firefox-geckodriver openssl - openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes - pip install -r requirements.txt diff --git a/src/unlearn/tokenpage.py b/src/unlearn/tokenpage.py index 0be0187d567130784a99c46cb92968efe6e1f226..27c7b22282ea4dcbce4e53a41be62b6eb2a958f2 100644 --- a/src/unlearn/tokenpage.py +++ b/src/unlearn/tokenpage.py @@ -2,8 +2,12 @@ import os if __name__ == "__main__": pages = os.path.dirname(__file__) + "/../../public" + with open(os.path.dirname(__file__) + "/password.txt", 'r') as f: + password = f.read() + print("The learn password is", password) + if not os.path.isdir(pages): os.mkdir(pages) with open(pages + "/index.html", 'w') as f: - f.write("hello world!") + f.write("hello world! " + password)