#!/bin/bash # Install and run website-skeleton on this machine (backend :3024, same host as userwallet/dashboard). # Usage: ./install-website-skeleton.sh # Then run update-proxy-nginx.sh for proxy + certificate (skeleton.certificator.4nkweb.com). set -e SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" cd "$SCRIPT_DIR" echo "=== Installation website-skeleton ===" (cd "$SCRIPT_DIR/../service-login-verify" && npm run build) if [ ! -d node_modules ]; then echo "Installation des dépendances..." npm install fi echo "Build..." npm run build echo "Installation du service systemd..." sudo cp website-skeleton.service /etc/systemd/system/ sudo systemctl daemon-reload sudo systemctl enable website-skeleton sudo systemctl start website-skeleton echo "=== website-skeleton installé et démarré (port 3024) ===" echo "Pour proxy + certificat: ./update-proxy-nginx.sh (depuis la racine du dépôt)"