2018-11-19 21:58:57 +07:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-09-09 00:37:00 +07:00
|
|
|
if [ "$IDEMPIERE_HOME" ]; then
|
|
|
|
cd "$IDEMPIERE_HOME"/utils || (echo "Cannot cd $IDEMPIERE_HOME/utils"; exit 1)
|
2018-11-19 21:58:57 +07:00
|
|
|
else
|
2020-09-09 00:37:00 +07:00
|
|
|
cd "$(dirname "$0")" || (echo "Cannot cd "; exit 1)
|
2018-11-19 21:58:57 +07:00
|
|
|
fi
|
2020-09-09 00:37:00 +07:00
|
|
|
export ID_ENV=Server
|
|
|
|
. ./myEnvironment.sh
|
2018-11-19 21:58:57 +07:00
|
|
|
|
2020-09-09 00:37:00 +07:00
|
|
|
if [ "$JAVA_HOME" ]; then
|
2018-11-19 21:58:57 +07:00
|
|
|
JAVA=$JAVA_HOME/bin/java
|
|
|
|
else
|
|
|
|
JAVA=java
|
|
|
|
fi
|
|
|
|
|
|
|
|
# $Id: RUN_ApplyPackInFromFolder.sh
|
2020-09-09 00:37:00 +07:00
|
|
|
echo Apply PackIn from Folder - "$IDEMPIERE_HOME" \("$ADEMPIERE_DB_NAME"\)
|
2018-11-19 21:58:57 +07:00
|
|
|
|
|
|
|
if [ $# -eq 1 ]
|
|
|
|
then
|
|
|
|
export DIRECTORY=$1
|
|
|
|
else
|
|
|
|
echo "Usage: $0 folder"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2020-09-09 00:37:00 +07:00
|
|
|
cd .. || (echo "Cannot cd .."; exit 1)
|
2018-11-19 21:58:57 +07:00
|
|
|
|
2020-09-09 00:37:00 +07:00
|
|
|
echo This Procedure import packin files from directory "$DIRECTORY"
|
2018-11-19 21:58:57 +07:00
|
|
|
|
2023-10-05 15:13:12 +07:00
|
|
|
"$JAVA" -Dosgi.compatibility.bootdelegation=true -Dosgi.noShutdown=false -jar plugins/org.eclipse.equinox.launcher_1.*.jar -application org.adempiere.base.PackInFolderApplication "$DIRECTORY"
|
2018-11-19 21:58:57 +07:00
|
|
|
|
|
|
|
echo Done
|
|
|
|
echo .
|
|
|
|
echo For problems, check log file in base directory
|