-
-
Notifications
You must be signed in to change notification settings - Fork 521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Script: Mealie #1164
New Script: Mealie #1164
Conversation
Not yet ready for review! |
|
||
msg_info "Installing Dependencies" | ||
$STD apt-get install -y \ | ||
nodejs \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nodejs \ | |
mc \ | |
nodejs \ |
install/mealie-install.sh
Outdated
RELEASE=$(curl -s https://api.github.com/repos/mealie-recipes/mealie/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') | ||
msg_info "Downloading mealie ${RELEASE}" | ||
wget -q "https://github.com/mealie-recipes/mealie/archive/refs/tags/${RELEASE}.zip" | ||
unzip "${RELEASE}.zip" -d /app/${APP} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you install under /opt/ ?
install/mealie-install.sh
Outdated
libldap-common \ | ||
libldap-2.5 | ||
|
||
rm -rf /var/lib/apt/lists/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
install/mealie-install.sh
Outdated
msg_info "Downloading mealie ${RELEASE}" | ||
wget -q "https://github.com/mealie-recipes/mealie/archive/refs/tags/${RELEASE}.zip" | ||
unzip "${RELEASE}.zip" -d /app/${APP} | ||
echo "${RELEASE}" >/app/${APP}_version.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
echo "${RELEASE}" >/app/${APP}_version.txt | |
echo "${RELEASE}" >/opt/${APP}_version.txt |
install/mealie-install.sh
Outdated
msg_ok "Create user account" | ||
|
||
msg_info "Builder Image" | ||
rm -rf /var/lib/apt/lists/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
chmod +x $MEALIE_HOME/run.sh | ||
$MEALIE_HOME/run.sh | ||
msg_ok "Copy Frontend" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add cleanup
|
||
# App Default Values | ||
APP="mealie" | ||
var_tags="food" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
recipes
check_container_storage | ||
check_container_resources | ||
|
||
# Check if installation is present | -f for file, -d for folder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove comment
msg_ok "Updated System" | ||
|
||
# Execute Update | ||
msg_info "Updating ${APP}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to v{RELEASE}
nodejs \ | ||
npm \ | ||
sudo \ | ||
git \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed?
msg_info "Installing Dependencies" | ||
$STD apt-get install -y \ | ||
nodejs \ | ||
npm \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Install NodeJS and NPM in an seperate Section Like other Scripts
libldap-2.5 | ||
|
||
mkdir /app | ||
npm install -g yarn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seperate Section
libldap-common \ | ||
libldap-2.5 | ||
|
||
mkdir /app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For what?
RELEASE=$(curl -s https://api.github.com/repos/mealie-recipes/mealie/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') | ||
msg_info "Downloading mealie ${RELEASE}" | ||
wget -q "https://github.com/mealie-recipes/mealie/archive/refs/tags/${RELEASE}.zip" | ||
unzip "${RELEASE}.zip" -d /app/mealie |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/opt
Like I said, it's not ready yet for review 😸 Thanks anyways |
✍️ Description
Created first draft for mealie.
🛠️ Type of Change
Please check the relevant options:
✅ Prerequisites
The following steps must be completed for the pull request to be considered:
Still in draft form, but I am looking forward to see it running.