Skip to content

Commit 0982dcb

Browse files
committed
Issue #3413: change the backup location
from var/backup_cpan_lib to backup
1 parent a9c548d commit 0982dcb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

backup/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This directory contains backup copies of Kernel/cpan_lib which were overwritten
2+
during updates of OTOBO. See the function `copy_otobo_next` in bin/docker/entrypoint.sh.

bin/docker/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function copy_otobo_next() {
130130
# the entire directory out of the way when it already exists.
131131
if [ -d "$OTOBO_HOME/Kernel/cpan-lib" ]; then
132132
source_dir="$OTOBO_HOME/Kernel/cpan-lib"
133-
target_dir="$OTOBO_HOME/var/backup_cpan_lib/$(date +%Y-%m-%d-%H%M%S)_$RANDOM/Kernel"
133+
target_dir="$OTOBO_HOME/backup/$(date +%Y-%m-%d-%H%M%S)_$RANDOM/Kernel"
134134
mkdir --parents $target_dir
135135
mv $source_dir $target_dir
136136
{

0 commit comments

Comments
 (0)