[arkdep] Only untar update.sh if ARKDEP_ROOT unset
This commit is contained in:
parent
23e6ec2e86
commit
a1db555af7
1 changed files with 8 additions and 6 deletions
14
arkdep
14
arkdep
|
@ -1198,13 +1198,15 @@ deploy () {
|
||||||
done
|
done
|
||||||
|
|
||||||
# Check if there is an update script available
|
# Check if there is an update script available
|
||||||
if tar -xf $arkdep_dir/cache/${data[0]}.tar.${data[1]} -C $arkdep_dir/cache/ ./${data[0]}-update.sh 2> /dev/null && [[ ! -n $ARKDEP_ROOT ]]; then
|
if [[ ! -n $ARKDEP_ROOT ]]; then
|
||||||
printf '\e[1;34m-->\e[0m\e[1m Running update script\e[0m\n'
|
if tar -xf $arkdep_dir/cache/${data[0]}.tar.${data[1]} -C $arkdep_dir/cache/ ./${data[0]}-update.sh 2> /dev/null; then
|
||||||
# Run the migration script if provided
|
printf '\e[1;34m-->\e[0m\e[1m Running update script\e[0m\n'
|
||||||
(source $arkdep_dir/cache/${data[0]}-update.sh)
|
# Run the migration script if provided
|
||||||
|
(source $arkdep_dir/cache/${data[0]}-update.sh)
|
||||||
|
|
||||||
printf '\e[1;34m-->\e[0m\e[1m Removing update script\e[0m\n'
|
printf '\e[1;34m-->\e[0m\e[1m Removing update script\e[0m\n'
|
||||||
rm $arkdep_dir/cache/${data[0]}-update.sh
|
rm $arkdep_dir/cache/${data[0]}-update.sh
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Image deployment finished, allow for interupts again
|
# Image deployment finished, allow for interupts again
|
||||||
|
|
Loading…
Add table
Reference in a new issue