File size: 688 Bytes
8e66c92
c24939e
 
e3d5ebd
 
 
 
c24939e
e3d5ebd
c24939e
 
e3d5ebd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
set -x  # Enable debug mode

echo "Current directory: $(pwd)"
echo "Contents of /app:"
ls -la /app
echo "Contents of /app/gateway:"
ls -la /app/gateway
echo "Contents of /app/cf5s:"
ls -la /app/cf5s

# Try to find the executables
find /app -name gateway -type f
find /app -name cf5s -type f

# Start services (using find results)
GATEWAY_PATH=$(find /app -name gateway -type f)
CF5S_PATH=$(find /app -name cf5s -type f)

if [ -n "$GATEWAY_PATH" ]; then
    cd $(dirname "$GATEWAY_PATH") && $GATEWAY_PATH &
else
    echo "Gateway executable not found!"
fi

if [ -n "$CF5S_PATH" ]; then
    cd $(dirname "$CF5S_PATH") && $CF5S_PATH
else
    echo "CF5S executable not found!"
fi