[UPD] refactoring and db creation update

This commit is contained in:
ivbo
2020-12-11 22:15:48 +01:00
parent 7240a81874
commit 600cfcfa04
11 changed files with 81 additions and 25001 deletions

View File

@@ -10,6 +10,7 @@ packages:
- curl
- git
- wget
- unzip
- python3-pip
- build-essential
- python3-dev
@@ -26,11 +27,12 @@ packages:
# boot commands
# These are like 'runcmd', but run very early in the boot process & run on every boot by default.
bootcmd:
- echo $(whoami) > /root/boot.txt
- echo $(whoami) > /root/boot.txt
runcmd:
# enable postgres
- systemctl enable --now postgresql.service
# create db user
- su - postgres -c "createuser -s ubuntu"
# setup directories
- sudo -u ubuntu mkdir /home/ubuntu/config