mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 20:25:28 +03:00
This is the new HOMER 7.x application completely rewritten. Does not replace the current HOMER 5.x package (community/homer-ui).
55 lines
1.3 KiB
Bash
55 lines
1.3 KiB
Bash
#!/bin/sh
|
|
# Alpine Linux HOMER setup
|
|
|
|
echo
|
|
read -p "Did you customize /etc/homer/webapp_config.json before running this setup (y/n)? " answer
|
|
|
|
test "$answer" = "y" || exit 1
|
|
|
|
# Create user
|
|
/usr/bin/homer-app \
|
|
-webapp-config-path=/etc/homer \
|
|
-create-homer-user \
|
|
-database-root=postgres \
|
|
-database-root-user=postgres \
|
|
-database-host=localhost
|
|
|
|
# Create config and data DBs
|
|
/usr/bin/homer-app \
|
|
-webapp-config-path=/etc/homer \
|
|
-create-config-db \
|
|
-database-root=postgres \
|
|
-database-root-user=postgres \
|
|
-database-host=localhost \
|
|
-database-homer-user=homer_user
|
|
|
|
/usr/bin/homer-app \
|
|
-webapp-config-path=/etc/homer \
|
|
-create-data-db \
|
|
-database-root=postgres \
|
|
-database-root-user=postgres \
|
|
-database-host=localhost \
|
|
-database-root-password=postgres \
|
|
-database-homer-user=homer_user
|
|
|
|
# Create role
|
|
/usr/bin/homer-app \
|
|
-webapp-config-path=/etc/homer \
|
|
-create-homer-role \
|
|
-database-root=postgres \
|
|
-database-root-user=postgres \
|
|
-database-host=localhost \
|
|
-database-root-password=postgres \
|
|
-database-homer-data=homer_data \
|
|
-database-homer-config=homer_config
|
|
|
|
# Populate connection data from webapp_config
|
|
/usr/bin/homer-app \
|
|
-webapp-config-path=/etc/homer \
|
|
-create-table-db-config
|
|
|
|
# Populate DB
|
|
/usr/bin/homer-app \
|
|
-webapp-config-path=/etc/homer \
|
|
-populate-table-db-config
|
|
|