fix(install.sh): deploy to plugins/rocketchat/ not plugins/platforms/rocketchat/
This commit is contained in:
+11
-11
@@ -339,7 +339,7 @@ perform_update() {
|
|||||||
hermes_dir=$(find_hermes_dir 2>/dev/null || echo "")
|
hermes_dir=$(find_hermes_dir 2>/dev/null || echo "")
|
||||||
|
|
||||||
if [ -n "$hermes_dir" ]; then
|
if [ -n "$hermes_dir" ]; then
|
||||||
local plugin_dir="$hermes_dir/plugins/platforms/rocketchat"
|
local plugin_dir="$hermes_dir/plugins/rocketchat"
|
||||||
local config_file="$HOME/.hermes/config.yaml"
|
local config_file="$HOME/.hermes/config.yaml"
|
||||||
local env_file="$HOME/.config/hermes/rocketchat.env"
|
local env_file="$HOME/.config/hermes/rocketchat.env"
|
||||||
create_backup "$backup_file" "$plugin_dir" "$config_file" "$env_file"
|
create_backup "$backup_file" "$plugin_dir" "$config_file" "$env_file"
|
||||||
@@ -352,7 +352,7 @@ perform_update() {
|
|||||||
git pull origin main 2>&1 || { update_error="Failed to pull from origin main"; return 1; }
|
git pull origin main 2>&1 || { update_error="Failed to pull from origin main"; return 1; }
|
||||||
|
|
||||||
# Copy plugin files directly (lines 448-466)
|
# Copy plugin files directly (lines 448-466)
|
||||||
PLUGIN_DST="$hermes_dir/plugins/platforms/rocketchat"
|
PLUGIN_DST="$hermes_dir/plugins/rocketchat"
|
||||||
mkdir -p "$PLUGIN_DST"
|
mkdir -p "$PLUGIN_DST"
|
||||||
|
|
||||||
# Rekursiv kopieren (inkl. Submodule wie archivar/), __pycache__ ausschließen
|
# Rekursiv kopieren (inkl. Submodule wie archivar/), __pycache__ ausschließen
|
||||||
@@ -369,8 +369,8 @@ perform_update() {
|
|||||||
msg copied "$copied_count"
|
msg copied "$copied_count"
|
||||||
|
|
||||||
# Symlink for core plugin loader: archivar must be importable as top-level module
|
# Symlink for core plugin loader: archivar must be importable as top-level module
|
||||||
if [ -d "$PLUGIN_DST/archivar" ]; then
|
if [ -d "$PLUGIN_DST/plugin/archivar" ]; then
|
||||||
ln -sfn "$PLUGIN_DST/archivar" "$hermes_dir/archivar"
|
ln -sfn "$PLUGIN_DST/plugin/archivar" "$hermes_dir/archivar"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# NOTE: room-map.json is MACHINE-SPECIFIC — never deployed
|
# NOTE: room-map.json is MACHINE-SPECIFIC — never deployed
|
||||||
@@ -482,7 +482,7 @@ perform_update_only() {
|
|||||||
|
|
||||||
# 2. Backup current state
|
# 2. Backup current state
|
||||||
local backup_file="/tmp/hermes-rocketchat-backup-$(date +%s).tar.gz"
|
local backup_file="/tmp/hermes-rocketchat-backup-$(date +%s).tar.gz"
|
||||||
local plugin_dir="$hermes_dir/plugins/platforms/rocketchat"
|
local plugin_dir="$hermes_dir/plugins/rocketchat"
|
||||||
if [ -d "$plugin_dir" ]; then
|
if [ -d "$plugin_dir" ]; then
|
||||||
create_backup "$backup_file" "$plugin_dir" \
|
create_backup "$backup_file" "$plugin_dir" \
|
||||||
"$HOME/.hermes/config.yaml" \
|
"$HOME/.hermes/config.yaml" \
|
||||||
@@ -491,7 +491,7 @@ perform_update_only() {
|
|||||||
|
|
||||||
# 3. Deploy all plugin files
|
# 3. Deploy all plugin files
|
||||||
msg deploying
|
msg deploying
|
||||||
local PLUGIN_DST="$hermes_dir/plugins/platforms/rocketchat"
|
local PLUGIN_DST="$hermes_dir/plugins/rocketchat"
|
||||||
mkdir -p "$PLUGIN_DST"
|
mkdir -p "$PLUGIN_DST"
|
||||||
|
|
||||||
# GUARD 1: Syntax-Check VOR Deployment
|
# GUARD 1: Syntax-Check VOR Deployment
|
||||||
@@ -538,8 +538,8 @@ perform_update_only() {
|
|||||||
msg deploy_done "$copied_count" "$PLUGIN_DST"
|
msg deploy_done "$copied_count" "$PLUGIN_DST"
|
||||||
|
|
||||||
# Symlink for core plugin loader: archivar must be importable as top-level module
|
# Symlink for core plugin loader: archivar must be importable as top-level module
|
||||||
if [ -d "$PLUGIN_DST/archivar" ]; then
|
if [ -d "$PLUGIN_DST/plugin/archivar" ]; then
|
||||||
ln -sfn "$PLUGIN_DST/archivar" "$hermes_dir/archivar"
|
ln -sfn "$PLUGIN_DST/plugin/archivar" "$hermes_dir/archivar"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
msg update_failed "plugin/ directory not found in $script_dir"
|
msg update_failed "plugin/ directory not found in $script_dir"
|
||||||
@@ -800,7 +800,7 @@ fi
|
|||||||
|
|
||||||
# ─── Copy plugin files ────────────────────────────────────
|
# ─── Copy plugin files ────────────────────────────────────
|
||||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||||
PLUGIN_DST="$HERMES_DIR/plugins/platforms/rocketchat"
|
PLUGIN_DST="$HERMES_DIR/plugins/rocketchat"
|
||||||
mkdir -p "$PLUGIN_DST"
|
mkdir -p "$PLUGIN_DST"
|
||||||
|
|
||||||
# GUARD 1: Syntax-Check VOR Deployment
|
# GUARD 1: Syntax-Check VOR Deployment
|
||||||
@@ -828,8 +828,8 @@ if [ -d "$SCRIPT_DIR/plugin" ]; then
|
|||||||
msg copied "$copied_count"
|
msg copied "$copied_count"
|
||||||
|
|
||||||
# Symlink for core plugin loader: archivar must be importable as top-level module
|
# Symlink for core plugin loader: archivar must be importable as top-level module
|
||||||
if [ -d "$PLUGIN_DST/archivar" ]; then
|
if [ -d "$PLUGIN_DST/plugin/archivar" ]; then
|
||||||
ln -sfn "$PLUGIN_DST/archivar" "$HERMES_DIR/archivar"
|
ln -sfn "$PLUGIN_DST/plugin/archivar" "$HERMES_DIR/archivar"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user