Add mealie
This commit is contained in:
parent
0394ae6c11
commit
d020bef34c
33 changed files with 332 additions and 19 deletions
0
ressources/mealie/rootfs-frontend/DEBIAN/changelog
Normal file
0
ressources/mealie/rootfs-frontend/DEBIAN/changelog
Normal file
1
ressources/mealie/rootfs-frontend/DEBIAN/conffiles
Normal file
1
ressources/mealie/rootfs-frontend/DEBIAN/conffiles
Normal file
|
@ -0,0 +1 @@
|
|||
/etc/default/mealie-frontend
|
7
ressources/mealie/rootfs-frontend/DEBIAN/control
Normal file
7
ressources/mealie/rootfs-frontend/DEBIAN/control
Normal file
|
@ -0,0 +1,7 @@
|
|||
Package: mealie-frontend
|
||||
Version: %VERSION%
|
||||
Section: contrib
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Maintainer: Thomas Legay <thomas@lgy.fr>
|
||||
Description: mealie-frontend
|
19
ressources/mealie/rootfs-frontend/DEBIAN/postinst
Executable file
19
ressources/mealie/rootfs-frontend/DEBIAN/postinst
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
APP=mealie-frontend
|
||||
HOMEDIR=/var/lib/mealie/frontend
|
||||
|
||||
[ -d ${HOMEDIR} ] || mkdir -p ${HOMEDIR}
|
||||
id ${APP} &> /dev/null || useradd ${APP} -r -s /bin/false -d ${HOMEDIR}
|
||||
|
||||
chown ${APP}:${APP} ${HOMEDIR}
|
||||
|
||||
systemctl | grep ${APP} | grep -q running && systemctl daemon-reload && systemctl restart ${APP}
|
||||
|
||||
if [[ $(systemctl list-unit-files | grep ${APP}.services) -eq 0 ]]
|
||||
then
|
||||
systemctl daemon-reload
|
||||
if [ "$(systemctl is-active ${APP}.service)" != "inactive" ]
|
||||
then
|
||||
systemctl restart ${APP}
|
||||
fi
|
||||
fi
|
|
@ -0,0 +1,19 @@
|
|||
NODE_ENV=production
|
||||
#API_URL=http://mealie-api:9000
|
||||
API_URL=http://localhost:9000
|
||||
|
||||
THEME_LIGHT_PRIMARY=#E58325
|
||||
THEME_LIGHT_ACCENT=#007A99
|
||||
THEME_LIGHT_SECONDARY=#973542
|
||||
THEME_LIGHT_SUCCESS=#43A047
|
||||
THEME_LIGHT_INFO=#1976D2
|
||||
THEME_LIGHT_WARNING=#FF6D00
|
||||
THEME_LIGHT_ERROR=#EF5350
|
||||
|
||||
THEME_DARK_PRIMARY=#E58325
|
||||
THEME_DARK_ACCENT=#007A99
|
||||
THEME_DARK_SECONDARY=#973542
|
||||
THEME_DARK_SUCCESS=#43A047
|
||||
THEME_DARK_INFO=#1976D2
|
||||
THEME_DARK_WARNING=#FF6D00
|
||||
THEME_DARK_ERROR=#EF5350
|
|
@ -0,0 +1,16 @@
|
|||
[Unit]
|
||||
Description=mealie-frontend
|
||||
After=multi-user.target
|
||||
|
||||
[Service]
|
||||
User=mealie-frontend
|
||||
Group=mealie-frontend
|
||||
EnvironmentFile=/etc/default/mealie-frontend
|
||||
ExecStart=node ./node_modules/nuxt/bin/nuxt.js start -H 0.0.0.0
|
||||
WorkingDirectory=/usr/share/mealie/frontend/
|
||||
SyslogIdentifier=mealie-frontend
|
||||
Restart=on-failure
|
||||
RestartSec=30s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue