[FIXED] Se corrigió referencia al .gnugp (incorrecto) a .gnupg (correcto)
This commit is contained in:
parent
0a96c9be18
commit
4490061c29
1 changed files with 6 additions and 6 deletions
|
@ -158,10 +158,10 @@ function developer_backup() {
|
|||
return $rc
|
||||
fi
|
||||
|
||||
# Copy full .gnugp for backup
|
||||
mkdir ${TMP_PATH}/.gnugp
|
||||
# Copy full .gnupg for backup
|
||||
mkdir ${TMP_PATH}/.gnupg
|
||||
if [ $? -eq 0 ]; then
|
||||
cp -rf $GNUGP_PATH/* ${TMP_PATH}/.gnugp/
|
||||
cp -rf $GNUGP_PATH/* ${TMP_PATH}/.gnupg/
|
||||
rc=$?
|
||||
if [ $rc -ne 0 ]
|
||||
then
|
||||
|
@ -198,7 +198,7 @@ function developer_backup() {
|
|||
|
||||
# Comprimir el archivo de respaldo en un archivo ZIP protegido con contraseña
|
||||
BACKUP_FILE="${LOCAL_BACKUP}/gpg_${USER}_${TIMESTAMP}"
|
||||
zip -qqr -P "${ZPASSWORD}" $BACKUP_FILE * .gnugp .ssh .gitconfig
|
||||
zip -qqr -P "${ZPASSWORD}" $BACKUP_FILE * .gnupg .ssh .gitconfig
|
||||
rc=$?
|
||||
if [ $rc -ne 0 ]
|
||||
then
|
||||
|
@ -245,8 +245,8 @@ function developer_restore() {
|
|||
|
||||
clear
|
||||
|
||||
# Restore zip full .gnugp path
|
||||
unzip -qqo -P "$ZPASSWORD" "$BACKUP_ZIP" ".gnugp"/* -d $HOME
|
||||
# Restore zip full .gnupg path
|
||||
unzip -qqo -P "$ZPASSWORD" "$BACKUP_ZIP" ".gnupg"/* -d $HOME
|
||||
rc=$?
|
||||
if [ $rc -ne 0 ]; then
|
||||
return $rc
|
||||
|
|
Loading…
Reference in a new issue