mirror of https://github.com/MISP/MISP
Use OutputDirName for temporary storage
parent
56d08e7dfc
commit
508239f275
|
@ -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)
|
GnuPGHomeDir=$(grep -o -P "(?<='homedir' => ').*(?=')" $MISPPath/app/Config/config.php)
|
||||||
GnuPGPass=$(grep -o -P "(?<='password' => ').*(?=')" $MISPPath/app/Config/config.php)
|
GnuPGPass=$(grep -o -P "(?<='password' => ').*(?=')" $MISPPath/app/Config/config.php)
|
||||||
# Create backup files
|
# Create backup files
|
||||||
TmpDir="$(mktemp -d)"
|
TmpDir="$(mktemp --tmpdir=$OutputDirName -d)"
|
||||||
cp $GnuPGHomeDir/* $TmpDir/
|
cp $GnuPGHomeDir/* $TmpDir/
|
||||||
echo "copy of org images and other custom images"
|
echo "copy of org images and other custom images"
|
||||||
cp -r $MISPPath/app/webroot/img/orgs $TmpDir/
|
cp -r $MISPPath/app/webroot/img/orgs $TmpDir/
|
||||||
|
|
Loading…
Reference in New Issue