File size: 209 Bytes
45e3447
 
 
 
 
 
 
 
 
 
 
5f4973d
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# Check if the user is root
if [ "$(id -u)" = "0" ]; then
    # Drop privileges using gosu
    exec gosu user "$0" "$@"
fi

# Handle any pre-start tasks if needed

# Run the main command
exec "$@"