Do not run var migrate if ARKDEP_ROOT defined
This commit is contained in:
parent
b2484c3994
commit
4a9e43a791
1 changed files with 1 additions and 1 deletions
2
arkdep
2
arkdep
|
@ -804,7 +804,7 @@ deploy () {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Migrate specified files and directories
|
# Migrate specified files and directories
|
||||||
if [[ ${#var_migrate_files[@]} -ge 1 ]]; then
|
if [[ ${#var_migrate_files[@]} -ge 1 ]] && [[ ! -n $ARKDEP_ROOT ]]; then
|
||||||
printf '\e[1;34m-->\e[0m\e[1m Migrating local files to new deployment\e[0m\n'
|
printf '\e[1;34m-->\e[0m\e[1m Migrating local files to new deployment\e[0m\n'
|
||||||
for file in ${var_migrate_files[@]}; do
|
for file in ${var_migrate_files[@]}; do
|
||||||
cp -rv /var/$file $arkdep_dir/deployments/${data[0]}/rootfs/var/
|
cp -rv /var/$file $arkdep_dir/deployments/${data[0]}/rootfs/var/
|
||||||
|
|
Loading…
Add table
Reference in a new issue