Skip to content

Commit

Permalink
Merge pull request #33 from TIBCOSoftware/plugin_fixes
Browse files Browse the repository at this point in the history
Fix to create user home directory and handle additional plugin folders
  • Loading branch information
VardhanaKulkarni authored Sep 26, 2019
2 parents bc99df9 + cff61ca commit 352b057
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ LABEL maintainer="TIBCO Software Inc."
ADD . /
RUN chmod 755 /scripts/*.sh && apt-get update && apt-get --no-install-recommends -y install unzip ssh net-tools && apt-get clean && rm -rf /var/lib/apt/lists/*
RUN groupadd -g 2001 bwce \
&& useradd -r -u 2001 -g bwce bwce
&& useradd -m -d /home/bwce -r -u 2001 -g bwce bwce
USER bwce
ENTRYPOINT ["/scripts/start.sh"]
2 changes: 1 addition & 1 deletion scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ checkPlugins()
mkdir -p $BWCE_HOME/tibco.home/addons/lib/ && mv $BWCE_HOME/plugintmp/lib/*.ini "$_"${name##*/}.ini
mkdir -p $BWCE_HOME/tibco.home/addons/lib/ && mv $BWCE_HOME/plugintmp/lib/*.jar "$_" 2> /dev/null || true
mkdir -p $BWCE_HOME/tibco.home/addons/bin/ && mv $BWCE_HOME/plugintmp/bin/* "$_" 2> /dev/null || true
find $BWCE_HOME/plugintmp/* -type d ! \( -name "runtime" -o -name "bin" -o -name "lib" \) -exec mv {} / \; 2> /dev/null
find $BWCE_HOME/plugintmp/* -type d ! \( -name "runtime" -o -name "bin" -o -name "lib" \) -exec mv {} /tmp \; 2> /dev/null
rm -rf $BWCE_HOME/plugintmp/
fi
done
Expand Down

0 comments on commit 352b057

Please sign in to comment.