Hello,

Just a post to add a script to install DAR/docapp to Documentum found on linkedin https://www.linkedin.com/feed/update/urn:li:activity:6498895995227766784 added by Alex Vais:

# Variables:
ENV=<Per_ENV>
SPECIFICDATE=`date +"%Y%m%d_%H%M%S"`
WORKINGDIRECTORY=$HOME/tmp/eitan/sandbox/dar_install
DOCAPPLOGFILE=$WORKINGDIRECTORY/log_file_$VAR.log
DARFILE=$WORKINGDIRECTORY/dar_filelist.log
SCRIPTFOLDER=$HOME/scripts
location1=$HOME/tmp/dar_install
location2=$HOME/dba/config/xxxxxxxxx/server.ini
LOG=$HOME/tmp/eitan/sandbox/dar_install/logs/dar_run_`date +"%Y%m%d"`.log
MSG=$HOME/tmp/eitan/sandbox/dar_install/logs/dar_run_`date +"%Y%m%d"`.msg
MAILTO="xxxxxxxxx@xxxxxxxx.xx.xx.xx.xxx"
WHATTOCHECK1="was successfully installed"

# Get Username:
export username=`whoami`; echo $username

# Get Docbase name:
export docbase1=`grep "docbase_name = " $location2 | awk '{print $NF}'`; echo $docbase1

# Get Docbase password:
export PASSWORD=` cat $SCRIPTFOLDER/.pwd_$docbase1`; echo $PASSWORD
echo " " > $LOG
echo " " > $MSG

cd $WORKINGDIRECTORY

ls -1 *.dar > $DARFILE

for VAR in `cat $DARFILE`
do
java -Dant_extended_lib_dir=$HOME/product/7.2/install/composer -Ddars=$VAR -Dlogpath=$LOG -Ddi_log=$DOCAPPLOGFILE -Ddocbase=$docbase1 -Duser=$username -Dpassword=$PASSWORD -Ddomain= -cp $HOME/product/7.2/install/composer/ComposerHeadless/startup.jar org.eclipse.core.launcher.Main -data $HOME/product/7.2/install/composer/workspace/ -application org.eclipse.ant.core.antRunner -buildfile $HOME/product/7.2/install/composer/deploy.xml deployAll
done

echo " $SPECIFICDATE Verification stage "

if grep -Fxq "$WHATTOCHECK1" $LOG
then
echo "$SPECIFICDATE DocApp was installed " >> $LOG 
else
echo "Check log file and run the process again" 
exit 0

fi

cat $LOG >> $MSG

mailx -s "$SPECIFICDATE Deployment of DAR file(s) to $ENV finished, here are the results;" $MAILTO < $MSG

echo " " > $LOG
echo " " > $MSG
echo " " > $DARFILE



Best regards,

Huseyin OZVEREN