fix(setup): move shim generation out of bashrc conditional block

This commit is contained in:
2025-12-28 16:07:49 +01:00
parent 2420a29eee
commit 1e9e7ac557

View File

@@ -108,10 +108,10 @@ EOF
fi fi
# 4b. Setup Role Aliases (Separate check to ensure update on existing installs) # 4b. Setup Role Aliases (Separate check to ensure update on existing installs)
if ! grep -q "alias dumbo" "$HOME_DIR/.bashrc"; then EOF
cat << 'EOF' >> "$HOME_DIR/.bashrc" fi
# 🎭 Role Shims (Global Executables) # 5. Role Shims (Global Executables)
# We use /usr/local/bin so that scripts (which ignore aliases) can also call 'dumbo', 'templatus' etc. # We use /usr/local/bin so that scripts (which ignore aliases) can also call 'dumbo', 'templatus' etc.
WRAPPER="/opt/crumbforest/native_crumbcore_v1/scripts/role_wrapper.sh" WRAPPER="/opt/crumbforest/native_crumbcore_v1/scripts/role_wrapper.sh"
ROLES_DIR="/opt/crumbforest/app/crumbforest_roles" ROLES_DIR="/opt/crumbforest/app/crumbforest_roles"
@@ -136,8 +136,8 @@ SHIM
print_info "Created shim: $role_base -> $script" print_info "Created shim: $role_base -> $script"
fi fi
done done
fi else
EOF print_info "No roles directory found at $ROLES_DIR. Skipping shim generation."
fi fi
# 5. Create Systemd Service # 5. Create Systemd Service