This commit is contained in:
Bob Mottram 2014-10-18 14:55:29 +01:00
parent 20d28825d9
commit 0d7761c9fc
1 changed files with 2 additions and 2 deletions

View File

@ -2228,7 +2228,7 @@ function configure_gpg {
su -c "gpg --output $MY_GPG_PUBLIC_KEY --armor --export $MY_GPG_PUBLIC_KEY_ID" - $MY_USERNAME
if grep -q "configure_email" $COMPLETION_FILE; then
if grep -q "Change your GPG password" /home/$MY_USERNAME/README; then
if ! grep -q "Change your GPG password" /home/$MY_USERNAME/README; then
echo '' >> /home/$MY_USERNAME/README
echo '' >> /home/$MY_USERNAME/README
echo 'Change your GPG password' >> /home/$MY_USERNAME/README
@ -2243,7 +2243,7 @@ function configure_gpg {
echo ' save' >> /home/$MY_USERNAME/README
echo ' quit' >> /home/$MY_USERNAME/README
fi
if grep -q "Publish your GPG public key" /home/$MY_USERNAME/README; then
if ! grep -q "Publish your GPG public key" /home/$MY_USERNAME/README; then
echo '' >> /home/$MY_USERNAME/README
echo '' >> /home/$MY_USERNAME/README
echo 'Publish your GPG public key' >> /home/$MY_USERNAME/README