This commit is contained in:
CanbiZ 2025-03-31 11:57:02 +02:00
commit d418508bb2
2 changed files with 3 additions and 2 deletions

View File

@ -104,7 +104,7 @@ function update_script() {
systemctl stop meilisearch systemctl stop meilisearch
msg_ok "Stopped Service" msg_ok "Stopped Service"
msg_info "Updating Meilisearch to v${RELEASE_MEILISEARCH}" msg_info "Updating Meilisearch to ${RELEASE_MEILISEARCH}"
cd /opt cd /opt
RELEASE=$(curl -s https://api.github.com/repos/meilisearch/meilisearch/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') RELEASE=$(curl -s https://api.github.com/repos/meilisearch/meilisearch/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
curl -fsSL https://github.com/meilisearch/meilisearch/releases/latest/download/meilisearch.deb -o meilisearch.deb curl -fsSL https://github.com/meilisearch/meilisearch/releases/latest/download/meilisearch.deb -o meilisearch.deb
@ -121,7 +121,7 @@ function update_script() {
msg_ok "Cleaned" msg_ok "Cleaned"
msg_ok "Updated Meilisearch" msg_ok "Updated Meilisearch"
else else
msg_ok "No update required. Meilisearch is already at v${RELEASE_MEILISEARCH}" msg_ok "No update required. Meilisearch is already at ${RELEASE_MEILISEARCH}"
fi fi
exit exit
} }

View File

@ -86,6 +86,7 @@ $STD php artisan scout:sync-index-settings
$STD php artisan config:cache $STD php artisan config:cache
$STD php artisan route:cache $STD php artisan route:cache
$STD php artisan event:cache $STD php artisan event:cache
chown -R www-data:www-data /opt/bar-assistant
echo "${RELEASE_BARASSISTANT}" >/opt/${APPLICATION}_version.txt echo "${RELEASE_BARASSISTANT}" >/opt/${APPLICATION}_version.txt
msg_ok "Installed Bar Assistant" msg_ok "Installed Bar Assistant"