@@ -0,0 +1,795 @@
+import getpass%0Aimport hashlib%0Afrom pymongo import MongoClient%0A%0Aspider_db = MongoClient().spider%0A%0Aadmin_present = False%0Afor user in spider_db.auth.find():%0A    if user%5B%22username%22%5D == %22admin%22:%0A        admin_present = True%0A        break%0A%0Aif not admin_present:%0A    password1 = getpass.getpass(%22Give a password for the admin user: %22)%0A    password2 = getpass.getpass(%22Give the password again: %22)%0A    if password1 == password2:%0A        user = %7B%0A            'username': %22admin%22,%0A            'password': hashlib.sha256(password1.encode(%22utf-8%22)).hexdigest(),%0A            'role': %5B%22admin%22%5D,%0A        %7D%0A        spider_db.auth.insert_one(user)%0A        print(%22Add 'admin' user with password supplied.%22)%0A    else:%0A        print(%22Passwords not corresponding...%22)%0Aelse:%0A    print(%22'admin' user already created.%22)%0A

Add initialisation script to add the admin user.