This commit is contained in:
alexandrev-tibco
2026-02-01 22:47:26 +01:00
parent 3692e46cf9
commit 6b405419cf
8 changed files with 1057 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
#!/bin/sh
set -e
APP_NAME="portfoliojournal-og"
SERVICE_FILE="/etc/init.d/${APP_NAME}"
BIN_TARGET="/usr/local/bin/${APP_NAME}"
echo "Building ${APP_NAME}..."
make -C "$(dirname "$0")" build
echo "Installing binary to ${BIN_TARGET}..."
cp "$(dirname "$0")/bin/${APP_NAME}" "${BIN_TARGET}"
chmod +x "${BIN_TARGET}"
echo "Installing OpenRC service to ${SERVICE_FILE}..."
cp "$(dirname "$0")/${APP_NAME}.openrc" "${SERVICE_FILE}"
chmod +x "${SERVICE_FILE}"
echo "Enabling service..."
rc-update add "${APP_NAME}" default
echo "Starting service..."
rc-service "${APP_NAME}" start
echo "Done."