2022-05-23 16:33:08 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
logs=/etc/logback.xml
|
|
|
|
container=/etc/container.ini
|
2024-05-07 14:44:06 +02:00
|
|
|
configfolder=/etc/config
|
|
|
|
|
2022-05-23 16:33:08 +02:00
|
|
|
if [ -f "$logs" ]; then
|
|
|
|
cp $logs /tomcat/lib
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f "$container" ]; then
|
|
|
|
cp $container /smartgears-distribution
|
|
|
|
fi
|
|
|
|
|
2024-05-07 14:44:06 +02:00
|
|
|
if [ -d "$configfolder" ]; then
|
|
|
|
echo "config folder exists"
|
|
|
|
cp -R $configfolder/* /smartgears-distribution/config/apps/
|
|
|
|
fi
|
|
|
|
|
2022-05-23 16:33:08 +02:00
|
|
|
exec "$@"
|
2022-06-10 17:13:07 +02:00
|
|
|
|
|
|
|
|