fix(surrealdb): address PR review feedback

- Deploy binary to /opt/surrealdb with symlink to /usr/local/bin
- Use literal 'SurrealDB' in messages instead of ${APP}
- Fix installation check path to /opt/surrealdb/surreal
- Update ExecStart to use /opt/surrealdb/surreal
- Use selfhst CDN logo URL and capitalize 'Debian' in JSON
- Capitalize 'Completed Successfully' to match conventions
This commit is contained in:
Poulette
2026-03-01 17:09:02 +01:00
parent 5526825a2a
commit af1f6b44c0
3 changed files with 49 additions and 50 deletions

View File

@@ -25,8 +25,8 @@ function update_script() {
check_container_storage
check_container_resources
if [[ ! -f /usr/local/bin/surreal ]]; then
msg_error "No ${APP} Installation Found!"
if [[ ! -f /opt/surrealdb/surreal ]]; then
msg_error "No SurrealDB Installation Found!"
exit
fi
@@ -35,8 +35,8 @@ function update_script() {
systemctl stop surrealdb
msg_ok "Stopped Service"
fetch_and_deploy_gh_release "surrealdb" "surrealdb/surrealdb" "prebuild" "latest" "/usr/local/bin" "surreal-v*.linux-amd64.tgz"
chmod +x /usr/local/bin/surreal
fetch_and_deploy_gh_release "surrealdb" "surrealdb/surrealdb" "prebuild" "latest" "/opt/surrealdb" "surreal-v*.linux-amd64.tgz"
chmod +x /opt/surrealdb/surreal
msg_info "Starting Service"
systemctl start surrealdb
@@ -50,7 +50,7 @@ start
build_container
description
msg_ok "Completed successfully!\n"
msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8000${CL}"