This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sleep 20 | |
sudo DEBIAN_FRONTEND=noninteractive apt-get update -y | |
sudo DEBIAN_FRONTEND=noninteractive apt-get upgrade -y | |
wget https://raw.githubusercontent.com/cubiteDevops/do-edx-configs/main/ansible-bootstrap.sh -O - | sudo bash | |
mkdir edx-configs && cd edx-configs | |
sudo wget https://raw.githubusercontent.com/edx/configuration/open-release/lilac.master/playbooks/sample_vars/passwords.yml | |
sudo wget https://raw.githubusercontent.com/cubiteDevops/do-edx-configs/main/vars.yml | |
while IFS= read line; do REPLACE=$(LC_ALL=C < /dev/urandom tr -dc 'A-Za-z0-9' | head -c35) && echo "$line" | sed "s/\!\!null/\'$REPLACE\'/"; done < ./passwords.yml | sudo tee ./my-passwords.yml | |
mkdir /edx-themes && sudo chmod -R 777 /edx-themes && cd /edx-themes |