[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
4
arkdep
4
arkdep
|
@ -1198,7 +1198,8 @@ deploy () {
|
|||
done
|
||||
|
||||
# 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
|
||||
if tar -xf $arkdep_dir/cache/${data[0]}.tar.${data[1]} -C $arkdep_dir/cache/ ./${data[0]}-update.sh 2> /dev/null; then
|
||||
printf '\e[1;34m-->\e[0m\e[1m Running update script\e[0m\n'
|
||||
# Run the migration script if provided
|
||||
(source $arkdep_dir/cache/${data[0]}-update.sh)
|
||||
|
@ -1206,6 +1207,7 @@ deploy () {
|
|||
printf '\e[1;34m-->\e[0m\e[1m Removing update script\e[0m\n'
|
||||
rm $arkdep_dir/cache/${data[0]}-update.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
# Image deployment finished, allow for interupts again
|
||||
trap 'echo "User interupt received, canceling cleanup step"; unlock_and_quit 4' INT TERM
|
||||
|
|
Loading…
Add table
Reference in a new issue