Skip to content

Commit 001f322

Browse files
authored
documentation quote password (hestiacp#4685)
running p4$$w@Rd un-quoted in bash will actually make the password p4<pid-of-bash>w@Rd because $$ is a special bash variable for "bash's current PID" $ echo P4$$w@rD P420254w@rD
1 parent 7ecf995 commit 001f322

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

bin/v-add-backup-host

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# info: add backup host
33
# options: TYPE HOST USERNAME PASSWORD [PATH] [PORT]
44
#
5-
# example: v-add-backup-host sftp backup.acme.com admin p4$$w@Rd
5+
# example: v-add-backup-host sftp backup.acme.com admin 'P4$$w@rD'
66
# v-add-backup-host b2 bucketName keyID applicationKey
77
#
88
# Add a new remote backup location. Currently SFTP, FTP and Backblaze are supported

bin/v-add-backup-host-restic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# info: add backup host
33
# options: TYPE HOST USERNAME PASSWORD [PATH] [PORT]
44
#
5-
# example: v-add-backup-host sftp backup.acme.com admin p4$$w@Rd
5+
# example: v-add-backup-host sftp backup.acme.com admin 'P4$$w@rD'
66
# v-add-backup-host b2 bucketName keyID applicationKey
77
#
88
# Add a new remote backup location. Currently SFTP, FTP and Backblaze are supported

bin/v-add-user

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# info: add system user
33
# options: USER PASSWORD EMAIL [PACKAGE] [NAME] [LASTNAME]
44
#
5-
# example: v-add-user user P4$$w@rD bgates@aol.com
5+
# example: v-add-user user 'P4$$w@rD' bgates@aol.com
66
#
77
# This function creates new user account.
88

docs/docs/reference/cli.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ add backup host
3838
**Examples**:
3939

4040
```bash
41-
v-add-backup-host sftp backup.acme.com admin p4$$w@Rd
41+
v-add-backup-host sftp backup.acme.com admin 'P4$$w@rD'
4242
v-add-backup-host b2 bucketName keyID applicationKey
4343
```
4444

@@ -864,7 +864,7 @@ add system user
864864
**Examples**:
865865

866866
```bash
867-
v-add-user user P4$$w@rD bgates@aol.com
867+
v-add-user user 'P4$$w@rD' bgates@aol.com
868868
```
869869

870870
This function creates new user account.

0 commit comments

Comments
 (0)