Просмотр исходного кода

Do not assume /usr/local/bin is always on the PATH

pull/6/head
Slavi Pantaleev 8 лет назад
Родитель
Сommit
0f43abb91d
2 измененных файлов: 2 добавлений и 2 удалений
  1. +1
    -1
      README.md
  2. +1
    -1
      roles/matrix-server/tasks/register_user.yml

+ 1
- 1
README.md Просмотреть файл

@@ -194,7 +194,7 @@ You can do it via this Ansible playbook (make sure to edit the `<your-username>`


**or** using the command-line after **SSH**-ing to your server (requires that [all services have been started](#starting-the-services)): **or** using the command-line after **SSH**-ing to your server (requires that [all services have been started](#starting-the-services)):


matrix-synapse-register-user <your-username> <your-password> <admin access: 0 or 1>
/usr/local/bin/matrix-synapse-register-user <your-username> <your-password> <admin access: 0 or 1>


**Note**: `<your-username>` is just a plain username (like `john`), not your full `@<username>:<your-domain>` identifier. **Note**: `<your-username>` is just a plain username (like `john`), not your full `@<username>:<your-domain>` identifier.




+ 1
- 1
roles/matrix-server/tasks/register_user.yml Просмотреть файл

@@ -21,4 +21,4 @@
when: start_result.changed when: start_result.changed


- name: Register user - name: Register user
shell: "matrix-synapse-register-user {{ username }} {{ password }} {{ '1' if admin == 'yes' else '0' }}"
shell: "/usr/local/bin/matrix-synapse-register-user {{ username }} {{ password }} {{ '1' if admin == 'yes' else '0' }}"

Загрузка…
Отмена
Сохранить