fix(install.sh): create archivar symlink for core plugin loader
This commit is contained in:
+15
@@ -363,6 +363,11 @@ perform_update() {
|
||||
copied_count=$(find "$script_dir/plugin" -type f ! -path '*/__pycache__/*' ! -name '*.pyc' | wc -l)
|
||||
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
|
||||
# by the installer. It is created by the RC-Skill onboarding
|
||||
# flow after gateway start. See RC-Skill: "Room Topic Discipline"
|
||||
@@ -517,6 +522,11 @@ perform_update_only() {
|
||||
local copied_count
|
||||
copied_count=$(find "$script_dir/plugin" -type f ! -path '*/__pycache__/*' ! -name '*.pyc' | wc -l)
|
||||
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
|
||||
msg update_failed "plugin/ directory not found in $script_dir"
|
||||
return 1
|
||||
@@ -779,6 +789,11 @@ if [ -d "$SCRIPT_DIR/plugin" ]; then
|
||||
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)
|
||||
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
|
||||
|
||||
# GUARD 2: Vollständigkeits-Check
|
||||
|
||||
Reference in New Issue
Block a user