Fix email notification

main
Anthony 2023-10-31 19:16:03 +08:00
parent d5f0f7b52c
commit 4c9a511c1a
1 changed files with 15 additions and 22 deletions

View File

@ -55,7 +55,21 @@ actions:
user: root
- if ("${response.exitStatus}" != "0"):
return: sftpError
- return: sftpSuccess
- return {
'result': 'success',
'message': 'Connection Details\n\n' +
'SFTP Host: ' + '${globals.sftpHost}' + '\n\n' +
'Port: ' + '${globals.sftpPort}' + '\n\n\n' +
'Login Credentials\n\n' +
'Username: ' + '${globals.username}' + '\n\n' +
'Password: ' + '${globals.password}',
'email': 'Connection Details' +
'SFTP Host: ' + '${globals.sftpHost}' + '\n' +
'Port: ' + '${globals.sftpPort}' + '\n\n' +
'Login Credentials' +
'Username: ' + '${globals.username}' + '\n' +
'Password: ' + '${globals.password}'
}
responses:
installSuccess:
@ -64,27 +78,6 @@ responses:
sftpError:
type: error
message: "Failed to add SFTP user. Please check the server logs for more details."
sftpSuccess:
type: success
email: |-
Connection Details<br><br>
SFTP Host: ${globals.sftpHost}<br><br>
Port: ${globals.sftpPort}<br>
<br><br>
Login Credentials<br>
Username: ${globals.username}<br><br>
Password: ${globals.password}
message:
en: |-
Connection Details
SFTP Host: ${globals.sftpHost}
Port: ${globals.sftpPort}
Login Credentials
Username: ${globals.username}
Password: ${globals.password}
buttons:
- settings: sfpform