Kaynağa Gözat

Fix local/bin scripts autocompletion by adding rx perms to everyone

It's mildly annoying when trying to execute these scripts while logged
in as a regular user, as the missing execute permissions will hinder
autocompletion even when trying to use with sudo.

These shell scripts don't contain secrets, but may fail when ran by a
regular user. The failure is due to the lack of access to the /matrix
directory, and does not result in any damage.
pull/1097/head
pushytoxin 4 yıl önce
ebeveyn
işleme
bee14550ab
3 değiştirilmiş dosya ile 5 ekleme ve 5 silme
  1. +1
    -1
      roles/matrix-nginx-proxy/tasks/ssl/setup_ssl_lets_encrypt.yml
  2. +3
    -3
      roles/matrix-postgres/tasks/setup_postgres.yml
  3. +1
    -1
      roles/matrix-synapse/tasks/synapse/setup_install.yml

+ 1
- 1
roles/matrix-nginx-proxy/tasks/ssl/setup_ssl_lets_encrypt.yml Dosyayı Görüntüle

@@ -34,7 +34,7 @@
template: template:
src: "{{ role_path }}/templates/usr-local-bin/matrix-ssl-lets-encrypt-certificates-renew.j2" src: "{{ role_path }}/templates/usr-local-bin/matrix-ssl-lets-encrypt-certificates-renew.j2"
dest: "{{ matrix_local_bin_path }}/matrix-ssl-lets-encrypt-certificates-renew" dest: "{{ matrix_local_bin_path }}/matrix-ssl-lets-encrypt-certificates-renew"
mode: 0750
mode: 0755


- name: Ensure SSL renewal systemd units installed - name: Ensure SSL renewal systemd units installed
template: template:


+ 3
- 3
roles/matrix-postgres/tasks/setup_postgres.yml Dosyayı Görüntüle

@@ -77,14 +77,14 @@
template: template:
src: "{{ role_path }}/templates/usr-local-bin/matrix-postgres-cli.j2" src: "{{ role_path }}/templates/usr-local-bin/matrix-postgres-cli.j2"
dest: "{{ matrix_local_bin_path }}/matrix-postgres-cli" dest: "{{ matrix_local_bin_path }}/matrix-postgres-cli"
mode: 0750
mode: 0755
when: matrix_postgres_enabled|bool when: matrix_postgres_enabled|bool


- name: Ensure matrix-change-user-admin-status script created - name: Ensure matrix-change-user-admin-status script created
template: template:
src: "{{ role_path }}/templates/usr-local-bin/matrix-change-user-admin-status.j2" src: "{{ role_path }}/templates/usr-local-bin/matrix-change-user-admin-status.j2"
dest: "{{ matrix_local_bin_path }}/matrix-change-user-admin-status" dest: "{{ matrix_local_bin_path }}/matrix-change-user-admin-status"
mode: 0750
mode: 0755
when: matrix_postgres_enabled|bool when: matrix_postgres_enabled|bool


- name: (Migration) Ensure old matrix-make-user-admin script deleted - name: (Migration) Ensure old matrix-make-user-admin script deleted
@@ -97,7 +97,7 @@
template: template:
src: "{{ role_path }}/templates/usr-local-bin/matrix-postgres-update-user-password-hash.j2" src: "{{ role_path }}/templates/usr-local-bin/matrix-postgres-update-user-password-hash.j2"
dest: "{{ matrix_local_bin_path }}/matrix-postgres-update-user-password-hash" dest: "{{ matrix_local_bin_path }}/matrix-postgres-update-user-password-hash"
mode: 0750
mode: 0755
when: matrix_postgres_enabled|bool when: matrix_postgres_enabled|bool


- name: Ensure matrix-postgres.service installed - name: Ensure matrix-postgres.service installed


+ 1
- 1
roles/matrix-synapse/tasks/synapse/setup_install.yml Dosyayı Görüntüle

@@ -106,4 +106,4 @@
template: template:
src: "{{ role_path }}/templates/synapse/usr-local-bin/matrix-synapse-register-user.j2" src: "{{ role_path }}/templates/synapse/usr-local-bin/matrix-synapse-register-user.j2"
dest: "{{ matrix_local_bin_path }}/matrix-synapse-register-user" dest: "{{ matrix_local_bin_path }}/matrix-synapse-register-user"
mode: 0750
mode: 0755

Yükleniyor…
İptal
Kaydet