add metabase
This commit is contained in:
parent
f698726065
commit
5558b7a679
8 changed files with 86 additions and 1 deletions
0
ressources/metabase/rootfs/DEBIAN/changelog
Normal file
0
ressources/metabase/rootfs/DEBIAN/changelog
Normal file
7
ressources/metabase/rootfs/DEBIAN/control
Normal file
7
ressources/metabase/rootfs/DEBIAN/control
Normal file
|
@ -0,0 +1,7 @@
|
|||
Package: metabase
|
||||
Version: %VERSION%
|
||||
Section: base
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Maintainer: Thomas Legay <thomas@syngate.fr>
|
||||
Description: metabase
|
5
ressources/metabase/rootfs/DEBIAN/postinst
Executable file
5
ressources/metabase/rootfs/DEBIAN/postinst
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
id metabase &> /dev/null || useradd metabase -r -s /bin/false -d /var/lib/metabase
|
||||
|
||||
chown -R www-data:www-data /var/lib/metabase
|
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=metabase
|
||||
|
||||
[Service]
|
||||
Type=exec
|
||||
User=metabase
|
||||
WorkingDirectory=/var/share/metabase
|
||||
ExecStart=/usr/bin/java -jar /usr/share/metabase/metabase.jar
|
||||
Restart=on-failure
|
||||
RestartSec=30s
|
||||
ReadWritePaths=/var/share/metabase
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
0
ressources/metabase/rootfs/usr/share/metabase/.gitkeep
Normal file
0
ressources/metabase/rootfs/usr/share/metabase/.gitkeep
Normal file
0
ressources/metabase/rootfs/var/lib/metabase/.gitkeep
Normal file
0
ressources/metabase/rootfs/var/lib/metabase/.gitkeep
Normal file
Loading…
Add table
Add a link
Reference in a new issue