blob: 40fa27886af17e26d256ee2d897d7f622f6fe2bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#!/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
|