[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
|
return $rc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Copy full .gnugp for backup
|
# Copy full .gnupg for backup
|
||||||
mkdir ${TMP_PATH}/.gnugp
|
mkdir ${TMP_PATH}/.gnupg
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
cp -rf $GNUGP_PATH/* ${TMP_PATH}/.gnugp/
|
cp -rf $GNUGP_PATH/* ${TMP_PATH}/.gnupg/
|
||||||
rc=$?
|
rc=$?
|
||||||
if [ $rc -ne 0 ]
|
if [ $rc -ne 0 ]
|
||||||
then
|
then
|
||||||
|
@ -198,7 +198,7 @@ function developer_backup() {
|
||||||
|
|
||||||
# Comprimir el archivo de respaldo en un archivo ZIP protegido con contraseña
|
# Comprimir el archivo de respaldo en un archivo ZIP protegido con contraseña
|
||||||
BACKUP_FILE="${LOCAL_BACKUP}/gpg_${USER}_${TIMESTAMP}"
|
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=$?
|
rc=$?
|
||||||
if [ $rc -ne 0 ]
|
if [ $rc -ne 0 ]
|
||||||
then
|
then
|
||||||
|
@ -245,8 +245,8 @@ function developer_restore() {
|
||||||
|
|
||||||
clear
|
clear
|
||||||
|
|
||||||
# Restore zip full .gnugp path
|
# Restore zip full .gnupg path
|
||||||
unzip -qqo -P "$ZPASSWORD" "$BACKUP_ZIP" ".gnugp"/* -d $HOME
|
unzip -qqo -P "$ZPASSWORD" "$BACKUP_ZIP" ".gnupg"/* -d $HOME
|
||||||
rc=$?
|
rc=$?
|
||||||
if [ $rc -ne 0 ]; then
|
if [ $rc -ne 0 ]; then
|
||||||
return $rc
|
return $rc
|
||||||
|
|
Loading…
Reference in a new issue