-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b63c54
commit 3a3d031
Showing
5 changed files
with
55 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
import { exec } from '@elsoul/child-process' | ||
import { colors } from '@cliffy/colors' | ||
|
||
const encryptPassword = async (password: string): Promise<string> => { | ||
const process = await exec( | ||
`openssl passwd -6 ${password}`, | ||
) | ||
return process.message | ||
try { | ||
const process = await exec( | ||
`openssl passwd -6 ${password}`, | ||
) | ||
return process.message | ||
} catch (_error) { | ||
const errorMessage = | ||
`⚠️ Please install openssl (MacOS: brew install openssl) | ||
brew install openssl | ||
brew --prefix openssl | ||
echo 'export PATH="{openssl path}"' >> ~/.zshrc` | ||
console.error(colors.yellow(errorMessage)) | ||
return '' | ||
} | ||
} | ||
|
||
export { encryptPassword } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tnet-validator/restart_with_rm_ledger.yml → ...alidator/restart_agave_with_rm_ledger.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters