Use OutputDirName for temporary storage

pull/1767/head
Richard van den Berg 2016-12-15 18:57:02 +01:00
parent 56d08e7dfc
commit 508239f275
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ GnuPGEmail=$(sed -n -e '/GnuPG/,$p' $MISPPath/app/Config/config.php|grep -o -P "
GnuPGHomeDir=$(grep -o -P "(?<='homedir' => ').*(?=')" $MISPPath/app/Config/config.php)
GnuPGPass=$(grep -o -P "(?<='password' => ').*(?=')" $MISPPath/app/Config/config.php)
# Create backup files
TmpDir="$(mktemp -d)"
TmpDir="$(mktemp --tmpdir=$OutputDirName -d)"
cp $GnuPGHomeDir/* $TmpDir/
echo "copy of org images and other custom images"
cp -r $MISPPath/app/webroot/img/orgs $TmpDir/