fix(install.sh): create archivar symlink for core plugin loader

This commit is contained in:
Bernd (Hermes)
2026-06-22 11:21:23 +02:00
parent 52dd470e00
commit 5c8026c0f0
+15
View File
@@ -363,6 +363,11 @@ perform_update() {
copied_count=$(find "$script_dir/plugin" -type f ! -path '*/__pycache__/*' ! -name '*.pyc' | wc -l) copied_count=$(find "$script_dir/plugin" -type f ! -path '*/__pycache__/*' ! -name '*.pyc' | wc -l)
msg copied "$copied_count" msg copied "$copied_count"
# Symlink for core plugin loader: archivar must be importable as top-level module
if [ -d "$PLUGIN_DST/archivar" ]; then
ln -sfn "$PLUGIN_DST/archivar" "$hermes_dir/archivar"
fi
# NOTE: room-map.json is MACHINE-SPECIFIC — never deployed # NOTE: room-map.json is MACHINE-SPECIFIC — never deployed
# by the installer. It is created by the RC-Skill onboarding # by the installer. It is created by the RC-Skill onboarding
# flow after gateway start. See RC-Skill: "Room Topic Discipline" # flow after gateway start. See RC-Skill: "Room Topic Discipline"
@@ -517,6 +522,11 @@ perform_update_only() {
local copied_count local copied_count
copied_count=$(find "$script_dir/plugin" -type f ! -path '*/__pycache__/*' ! -name '*.pyc' | wc -l) copied_count=$(find "$script_dir/plugin" -type f ! -path '*/__pycache__/*' ! -name '*.pyc' | wc -l)
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
if [ -d "$PLUGIN_DST/archivar" ]; then
ln -sfn "$PLUGIN_DST/archivar" "$hermes_dir/archivar"
fi
else else
msg update_failed "plugin/ directory not found in $script_dir" msg update_failed "plugin/ directory not found in $script_dir"
return 1 return 1
@@ -779,6 +789,11 @@ if [ -d "$SCRIPT_DIR/plugin" ]; then
done < <(find "$SCRIPT_DIR/plugin" -type f ! -path '*/__pycache__/*' ! -name '*.pyc') done < <(find "$SCRIPT_DIR/plugin" -type f ! -path '*/__pycache__/*' ! -name '*.pyc')
copied_count=$(find "$SCRIPT_DIR/plugin" -type f ! -path '*/__pycache__/*' ! -name '*.pyc' | wc -l) copied_count=$(find "$SCRIPT_DIR/plugin" -type f ! -path '*/__pycache__/*' ! -name '*.pyc' | wc -l)
msg copied "$copied_count" msg copied "$copied_count"
# Symlink for core plugin loader: archivar must be importable as top-level module
if [ -d "$PLUGIN_DST/archivar" ]; then
ln -sfn "$PLUGIN_DST/archivar" "$HERMES_DIR/archivar"
fi
fi fi
# GUARD 2: Vollständigkeits-Check # GUARD 2: Vollständigkeits-Check