Echo
This commit is contained in:
parent
22cd2dda75
commit
5ee5d8445f
|
@ -2416,10 +2416,9 @@ function get_mariadb_owncloud_admin_password {
|
|||
}
|
||||
|
||||
function backup_directory_to_usb {
|
||||
if [ ! -d ${1} ]; then
|
||||
echo "WARNING: directory does not exist: ${1}"
|
||||
return
|
||||
fi
|
||||
echo "if [ ! -d ${1} ]; then" >> /usr/bin/$BACKUP_SCRIPT_NAME
|
||||
echo " echo \"WARNING: directory does not exist: ${1}\"" >> /usr/bin/$BACKUP_SCRIPT_NAME
|
||||
echo 'else' >> /usr/bin/$BACKUP_SCRIPT_NAME
|
||||
|
||||
if [[ $BACKUP_TYPE == 'obnam' ]]; then
|
||||
BACKUP_KEY_EXISTS=$(gpg --list-keys "$MY_NAME (backup key)")
|
||||
|
@ -2447,6 +2446,7 @@ function backup_directory_to_usb {
|
|||
echo " shred -zu ${1}/*" >> /usr/bin/$BACKUP_SCRIPT_NAME
|
||||
echo " rm -rf ${1}" >> /usr/bin/$BACKUP_SCRIPT_NAME
|
||||
fi
|
||||
echo 'fi' >> /usr/bin/$BACKUP_SCRIPT_NAME
|
||||
}
|
||||
|
||||
function backup_database {
|
||||
|
|
Loading…
Reference in New Issue