Merge pull request #4 from ikanc/fix/install-lib-directory
fix(install): add lib/ directory copy for response_analyzer.sh
This commit is contained in:
commit
e370c1ec2e
1 changed files with 7 additions and 2 deletions
|
|
@ -75,6 +75,7 @@ create_install_dirs() {
|
|||
mkdir -p "$INSTALL_DIR"
|
||||
mkdir -p "$RALPH_HOME"
|
||||
mkdir -p "$RALPH_HOME/templates"
|
||||
mkdir -p "$RALPH_HOME/lib"
|
||||
|
||||
log "SUCCESS" "Directories created: $INSTALL_DIR, $RALPH_HOME"
|
||||
}
|
||||
|
|
@ -86,6 +87,9 @@ install_scripts() {
|
|||
# Copy templates to Ralph home
|
||||
cp -r "$SCRIPT_DIR/templates/"* "$RALPH_HOME/templates/"
|
||||
|
||||
# Copy lib scripts (response_analyzer.sh, circuit_breaker.sh)
|
||||
cp -r "$SCRIPT_DIR/lib/"* "$RALPH_HOME/lib/"
|
||||
|
||||
# Create the main ralph command
|
||||
cat > "$INSTALL_DIR/ralph" << 'EOF'
|
||||
#!/bin/bash
|
||||
|
|
@ -141,6 +145,7 @@ EOF
|
|||
chmod +x "$INSTALL_DIR/ralph-import"
|
||||
chmod +x "$RALPH_HOME/ralph_monitor.sh"
|
||||
chmod +x "$RALPH_HOME/ralph_import.sh"
|
||||
chmod +x "$RALPH_HOME/lib/"*.sh
|
||||
|
||||
log "SUCCESS" "Ralph scripts installed to $INSTALL_DIR"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue