[FIXED] Se corrigió referencia al .gnugp (incorrecto) a .gnupg (correcto)

This commit is contained in:
Mauro Rosero P. 2024-12-17 00:23:57 -05:00
parent 0a96c9be18
commit 4490061c29
Signed by: mrosero
GPG key ID: 83BD2A5F674B7E26

View file

@ -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