mirror of
https://github.com/deajan/obackup.git
synced 2024-12-25 23:13:41 +01:00
Added ~ expansion
This commit is contained in:
parent
d415a727bf
commit
8c17c2dfe2
@ -5,8 +5,8 @@ PROGRAM="obackup"
|
|||||||
AUTHOR="(C) 2013-2016 by Orsiris de Jong"
|
AUTHOR="(C) 2013-2016 by Orsiris de Jong"
|
||||||
CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr"
|
CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr"
|
||||||
PROGRAM_VERSION=2.1-dev
|
PROGRAM_VERSION=2.1-dev
|
||||||
PROGRAM_BUILD=2016082901
|
PROGRAM_BUILD=2016083001
|
||||||
IS_STABLE=no
|
IS_STABLE=yes
|
||||||
|
|
||||||
source "./ofunctions.sh"
|
source "./ofunctions.sh"
|
||||||
|
|
||||||
@ -1245,6 +1245,12 @@ function Main {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Expand ~ if exists
|
||||||
|
FILE_STORAGE="${FILE_STORAGE/#\~/$HOME}"
|
||||||
|
SQL_STORAGE="${SQL_STORAGE/#\~/$HOME}"
|
||||||
|
SSH_RSA_PRIVATE_KEY="${SSH_RSA_PRIVATE_KEY/#\~/$HOME}"
|
||||||
|
ENCRYPT_PUBKEY="${ENCRPYT_PUBKEY/#\~/$HOME}"
|
||||||
|
|
||||||
if [ "$CREATE_DIRS" != "no" ]; then
|
if [ "$CREATE_DIRS" != "no" ]; then
|
||||||
CreateStorageDirectories
|
CreateStorageDirectories
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user