symlink contents of `$BITNAMI_APP_DIR/webapps.defaults/` instead of copying them to `/app/`
This commit is contained in:
parent
fdf500092f
commit
f888cb7e2a
|
|
@ -3,5 +3,8 @@
|
|||
initialize_tomcat_webapps() {
|
||||
echo "==> Initializing Tomcat webapps directory..."
|
||||
echo ""
|
||||
cp -a $BITNAMI_APP_DIR/webapps.defaults/* /app/
|
||||
for f in $(ls $BITNAMI_APP_DIR/webapps.defaults/)
|
||||
do
|
||||
ln -sf $BITNAMI_APP_DIR/webapps.defaults/$f /app/
|
||||
done
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,9 +28,7 @@ chown -R $BITNAMI_APP_USER:$BITNAMI_APP_USER $BITNAMI_APP_VOL_PREFIX/conf/ $BITN
|
|||
if [ "$1" = 'catalina.sh' ]; then
|
||||
set -- $@ $EXTRA_OPTIONS
|
||||
|
||||
if [ ! -d /app/manager ]; then
|
||||
initialize_tomcat_webapps
|
||||
fi
|
||||
initialize_tomcat_webapps
|
||||
|
||||
exec gosu $BITNAMI_APP_USER "$@"
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue