Add mealie

This commit is contained in:
thomas 2022-11-19 19:56:01 +01:00
parent 0394ae6c11
commit d020bef34c
33 changed files with 332 additions and 19 deletions

View file

@ -26,13 +26,15 @@ configure_depot_yarn() {
}
configure_depot_nodejs() {
NODE_VERSION=16.x
NODE_VERSION=16
[ ! "$1" == "" ] && NODE_VERSION=$1
grep -q 16.x /etc/apt/sources.list.d/nodesource.list
XNODE_VERSION=${NODE_VERSION}.x
grep -q ${XNODE_VERSION} /etc/apt/sources.list.d/nodesource.list
if [ $? -ne 0 ]
then
wget -qO - https://deb.nodesource.com/setup_${NODE_VERSION} | bash
wget -qO - https://deb.nodesource.com/setup_${XNODE_VERSION} | bash
fi
echo -e "Package: nodejs\\nPin: version ${NODE_VERSION}.*\\nPin-Priority: 1000" > /etc/apt/preferences.d/nodejs
}
install_go() {

View file

@ -49,6 +49,7 @@ zdebmaker_inject(){
sudo mkdir ${MOUNT_PATH}/${APP}/tmp/dist/
[ -d ${MOUNT_PATH}/${APP}/tmp/src ] && sudo rm -rf ${MOUNT_PATH}/${APP}/tmp/src/
sudo mkdir -p ${MOUNT_PATH}/${APP}/tmp/src
sudo echo . /tmp/src/exec_in_chroot.sh | sudo tee ${MOUNT_PATH}/${APP}/root/.bashrc
sudo cp -pfr ressources/${APP}/* ${MOUNT_PATH}/${APP}/tmp/src
sudo cp lib/exec_in_chroot.sh ${MOUNT_PATH}/${APP}/tmp/src
sudo find ${MOUNT_PATH}/${APP}/tmp/src -name .gitkeep -exec rm {} \;