fix(setup): move shim generation out of bashrc conditional block
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user