Skip to content

Commit 6197ae7

Browse files
committed
Received bad advice for shell commands ...
1 parent a031988 commit 6197ae7

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

README.md

+12-6
Original file line numberDiff line numberDiff line change
@@ -374,22 +374,28 @@ gitlab_rails['ldap_servers'] = {
374374

375375
Once you've configured this tool you can run it from a CLI using:
376376

377-
$ php bin/console ldap:sync -d
377+
```console
378+
php bin/console ldap:sync -d
379+
```
378380

379381
Depending on your system's PHP installation you may need to use `php-cli` instead of `php`. (This typically only occurs on WHM/cPanel based servers configured to host PHP via the fast process manager, PHP-FPM.)
380382

381383
**The `-d` option is important for your first run.** This enables "dry run" mode, meaning no changes will be persisted to your Gitlab instances. After running this tool you should evaluate the changes that will be made based on the output, then run it again without the `-d` option to persist the changes.
382384

383385
If you'd like to see more verbose output you can add up to 3 `-v` switches, for example:
384386

385-
$ php bin/console ldap:sync -v
386-
$ php bin/console ldap:sync -vv
387-
$ php bin/console ldap:sync -vvv
387+
```console
388+
php bin/console ldap:sync -v
389+
php bin/console ldap:sync -vv
390+
php bin/console ldap:sync -vvv
391+
```
388392

389393
If you'd like to only sync with a single Gitlab instance you can specify the name of it as per your configuration as an argument, for example:
390394

391-
$ php bin/console ldap:sync athena
392-
$ php bin/console ldap:sync demeter
395+
```console
396+
php bin/console ldap:sync athena
397+
php bin/console ldap:sync demeter
398+
```
393399

394400
## Built With
395401

0 commit comments

Comments
 (0)