MAAS: Difference between revisions
Jump to navigation
Jump to search
Line 75: | Line 75: | ||
| valign="top" | | | valign="top" | | ||
* [https://unix.stackexchange.com/questions/122845/ Using <code>${a:-b}</code> for a Bash Variable Assignment] | |||
* [https://unix.stackexchange.com/questions/594841/ Assign a Default Value to a Bash Variable] | |||
* [[Academia JavaEE Workspace in Raspbian]] | * [[Academia JavaEE Workspace in Raspbian]] | ||
* [[Academia JavaEE Workspace in Ubuntu]] | * [[Academia JavaEE Workspace in Ubuntu]] |
Revision as of 19:27, 16 March 2023
sudo snap install maas --channel=3.3/stable sudo snap install maas
PostgreSQL
sudo apt install postgresql postgresql-contrib
sudo systemctl enable postgresql
sudo systemctl status postgresql
sudo systemctl start postgresql
sudo systemctl daemon-reload
sudo -i -u postgres bash << EOF
createuser ${USER}
createdb ${USER}
cat << DDL | psql
ALTER USER ${USER} WITH SUPERUSER;
DDL
EOF
sudo -i -u postgres psql << DDL
CREATE USER ${MAAS_DBUSER:-academia_maas} WITH ENCRYPTED PASSWORD '${MAAS_DBPASS:-sadaqah}'
DDL
sudo -i -u postgres bash << EOF
createdb -O ${MAAS_DBUSER:-academia_maas} ${MAAS_DBNAME:-academia_maas}
EOF
Knowledge
install: sudo snap install maas --channel=3.3 |
upgrade: sudo snap refresh maas --channel=3.3 |
sudo snap install maas-test-db sudo maas-test-db.psql |
| ||
sudo maas init --help |
References
| ||