24 lines
630 B
Bash
Executable File
24 lines
630 B
Bash
Executable File
#!/bin/bash
|
|
# harnessed_agent build script
|
|
|
|
set -e
|
|
|
|
echo "Building Hermes Agent module..."
|
|
|
|
# Create symbolic links for wwwroot files
|
|
MODULE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
MAIN_WWWROOT="$MODULE_DIR/../wwwroot"
|
|
|
|
# Ensure main wwwroot exists
|
|
mkdir -p "$MAIN_WWWROOT"
|
|
|
|
# Link module wwwroot files to main application wwwroot
|
|
for file in "$MODULE_DIR"/wwwroot/*; do
|
|
if [ -f "$file" ]; then
|
|
filename=$(basename "$file")
|
|
ln -sf "$file" "$MAIN_WWWROOT/harnessed_agent_$filename"
|
|
echo "Linked $filename to main wwwroot"
|
|
fi
|
|
done
|
|
|
|
echo "Hermes Agent module build completed successfully!" |