Browse Source

Opportunistic OTR

Bob Mottram 8 years ago
parent
commit
7eba87da16
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      src/freedombone-app-xmpp

+ 7
- 1
src/freedombone-app-xmpp View File

217
     echo '' >> /home/$new_username/.config/profanity/profrc
217
     echo '' >> /home/$new_username/.config/profanity/profrc
218
     echo '[plugins]' >> /home/$new_username/.config/profanity/profrc
218
     echo '[plugins]' >> /home/$new_username/.config/profanity/profrc
219
     echo 'load=prof_omemo_plugin.py;' >> /home/$new_username/.config/profanity/profrc
219
     echo 'load=prof_omemo_plugin.py;' >> /home/$new_username/.config/profanity/profrc
220
+    echo '' >> /home/$new_username/.config/profanity/profrc
221
+    echo '[otr]' >> /home/$new_username/.config/profanity/profrc
222
+    echo 'policy=opportunistic' >> /home/$new_username/.config/profanity/profrc
220
 
223
 
221
     chown -R $new_username:$new_username /home/$new_username/.local
224
     chown -R $new_username:$new_username /home/$new_username/.local
222
     chown -R $new_username:$new_username /home/$new_username/.config
225
     chown -R $new_username:$new_username /home/$new_username/.config
989
     fi
992
     fi
990
 
993
 
991
     # install the omemo plugin
994
     # install the omemo plugin
992
-    apt-get -yq install python-pip python-setuptools clang libffi-dev libssl-dev
995
+    apt-get -yq install python-pip python-setuptools clang libffi-dev libssl-dev python-dev
993
     git_clone $PROFANITY_OMEMO_PLUGIN_REPO $INSTALL_DIR/profanity-omemo-plugin
996
     git_clone $PROFANITY_OMEMO_PLUGIN_REPO $INSTALL_DIR/profanity-omemo-plugin
994
     cd $INSTALL_DIR/profanity-omemo-plugin
997
     cd $INSTALL_DIR/profanity-omemo-plugin
995
     git checkout $PROFANITY_OMEMO_PLUGIN_COMMIT -b $PROFANITY_OMEMO_PLUGIN_COMMIT
998
     git checkout $PROFANITY_OMEMO_PLUGIN_COMMIT -b $PROFANITY_OMEMO_PLUGIN_COMMIT
1068
     echo '' >> /home/$MY_USERNAME/.config/profanity/profrc
1071
     echo '' >> /home/$MY_USERNAME/.config/profanity/profrc
1069
     echo '[plugins]' >> /home/$MY_USERNAME/.config/profanity/profrc
1072
     echo '[plugins]' >> /home/$MY_USERNAME/.config/profanity/profrc
1070
     echo 'load=prof_omemo_plugin.py;' >> /home/$MY_USERNAME/.config/profanity/profrc
1073
     echo 'load=prof_omemo_plugin.py;' >> /home/$MY_USERNAME/.config/profanity/profrc
1074
+    echo '' >> /home/$MY_USERNAME/.config/profanity/profrc
1075
+    echo '[otr]' >> /home/$MY_USERNAME/.config/profanity/profrc
1076
+    echo 'policy=opportunistic' >> /home/$MY_USERNAME/.config/profanity/profrc
1071
 
1077
 
1072
     chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.local
1078
     chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.local
1073
     chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.config
1079
     chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.config