Kaynağa Gözat

Merge branch 'stretch' of https://github.com/bashrc/freedombone

Bob Mottram 7 yıl önce
ebeveyn
işleme
685f31d7c8

+ 2
- 1
src/freedombone-app-matrix Dosyayı Görüntüle

@@ -51,7 +51,7 @@ MATRIX_PORT=8009
51 51
 MATRIX_FEDERATION_ONION_PORT=8111
52 52
 MATRIX_ONION_PORT=8109
53 53
 MATRIX_REPO="https://github.com/matrix-org/synapse"
54
-MATRIX_COMMIT='552f123bea1014680ab798b7e34cd1b23424a189'
54
+MATRIX_COMMIT='ddb00efc1ddec646d02e8def6053003f04d077d7'
55 55
 REPORT_STATS="no"
56 56
 MATRIX_SECRET=
57 57
 MATRIX_EXPIRE_MONTHS=1
@@ -422,6 +422,7 @@ function upgrade_matrix {
422 422
     set_repo_commit /etc/matrix "matrix commit" "$MATRIX_COMMIT" $MATRIX_REPO
423 423
     cd /etc/matrix || exit 62476724
424 424
     pip install --upgrade --process-dependency-links .
425
+    pip install --upgrade --force "pynacl>=1.2.1"
425 426
 
426 427
     sed -i 's/ssl.PROTOCOL_SSLv23/ssl.PROTOCOL_TLSv1/g' /usr/local/bin/register_new_matrix_user
427 428
 

+ 14
- 2
src/freedombone-app-pleroma Dosyayı Görüntüle

@@ -47,7 +47,7 @@ PLEROMA_CODE=
47 47
 PLEROMA_PORT=4000
48 48
 PLEROMA_ONION_PORT=8011
49 49
 PLEROMA_REPO="https://git.pleroma.social/pleroma/pleroma.git"
50
-PLEROMA_COMMIT='312a8783f8dbf563ea9d5af3cc7991ca553dc286'
50
+PLEROMA_COMMIT='59a76ea464998476f8c4814324647f4ae4a7f2cb'
51 51
 PLEROMA_ADMIN_PASSWORD=
52 52
 PLEROMA_DIR=/etc/pleroma
53 53
 PLEROMA_SECRET_KEY=""
@@ -938,6 +938,18 @@ function remove_pleroma {
938 938
     remove_ddns_domain "$PLEROMA_DOMAIN_NAME"
939 939
 }
940 940
 
941
+function image_install_pleroma {
942
+    if [[ "$SOCIALINSTANCE" != 'pleroma' ]]; then
943
+        return
944
+    fi
945
+
946
+    # shellcheck disable=SC2154
947
+    chroot "$rootdir" apt-get -yq install wget imagemagick
948
+
949
+    image_install_elixir
950
+    image_install_postgresql
951
+}
952
+
941 953
 function install_pleroma {
942 954
     if [ ! $ONION_ONLY ]; then
943 955
         ONION_ONLY='no'
@@ -1019,7 +1031,7 @@ function install_pleroma {
1019 1031
         function_check nginx_security_options
1020 1032
         nginx_security_options "$PLEROMA_DOMAIN_NAME"
1021 1033
 
1022
-        { echo '  add_header Strict-Transport-Security max-age=15768000;';
1034
+        { echo '  add_header Strict-Transport-Security max-age=0;';
1023 1035
           echo '';
1024 1036
           echo '  # Logs';
1025 1037
           echo '  access_log /dev/null;';

+ 1
- 1
src/freedombone-image-customise Dosyayı Görüntüle

@@ -2162,12 +2162,12 @@ create_generic_image
2162 2162
 atheros_wifi
2163 2163
 continue_installation
2164 2164
 image_install_nodejs
2165
-image_install_elixir
2166 2165
 initialise_mesh
2167 2166
 configure_wifi
2168 2167
 configure_user_interface
2169 2168
 image_setup_utils
2170 2169
 image_install_inadyn
2170
+image_install_pleroma
2171 2171
 image_preinstall_repos
2172 2172
 
2173 2173
 # remove downloaded packages

+ 2
- 2
src/freedombone-utils-postgresql Dosyayı Görüntüle

@@ -49,7 +49,7 @@ function get_postgresql_password {
49 49
     fi
50 50
 }
51 51
 
52
-function mesh_install_postgresql {
52
+function image_install_postgresql {
53 53
     # shellcheck disable=SC2154,SC2086
54 54
     chroot "$rootdir" apt-get -yq install $POSTGRESQL_PACKAGES
55 55
 
@@ -66,7 +66,7 @@ function mesh_install_postgresql {
66 66
 
67 67
 function install_postgresql {
68 68
     if [[ $VARIANT == "mesh"* ]]; then
69
-        mesh_install_postgresql
69
+        image_install_postgresql
70 70
         return
71 71
     fi
72 72