Fix for /backup

This commit is contained in:
myvesta 2023-02-10 19:37:45 +01:00 committed by GitHub
parent 7420a9ca84
commit 6770d3bc4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View file

@ -60,6 +60,10 @@ if [ ! -z "$check_db" ]; then
exit $E_EXISTS
fi
if [ ! -d "/backup" ]; then
echo "There is no /backup folder, creating it now..."
mkdir /backup
fi
#----------------------------------------------------------#
# Action #

View file

@ -42,11 +42,6 @@ fi
USER_TO=$user
if [ ! -d "/backup" ]; then
echo "There is no /backup folder, creating it now..."
mkdir /backup
fi
#----------------------------------------------------------#
# Action #
#----------------------------------------------------------#

View file

@ -595,6 +595,8 @@ fi
# Backup #
#----------------------------------------------------------#
mkdir /backup
echo "=== Creating backup directory tree"
mkdir -p $vst_backups
cd $vst_backups