[UPD] refactoring and db creation update
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user