Compare commits

..

No commits in common. "c6ab45e4a1644e1ad3cb12a0b042ebe63e71907f" and "3bba4d9705b4970987b3c2c6dca8d46b1ba2effe" have entirely different histories.

1 changed files with 31 additions and 34 deletions

View File

@ -27,32 +27,28 @@ globals:
sftpPort: 22
onInstall:
- cmd[cp]: |-
sudo su
- cmd[cp]: |
curl -O https://deploy-proxy.mightybox.io/addons/add-sftp-user/raw/branch/main/add-sftp.sh
chmod +x add-sftp.sh
echo -e "\nMatch User user*\nPasswordAuthentication yes" >> /etc/ssh/sshd_config
chown root:root /var/www/webroot/ROOT
chmod 755 /var/www/webroot/ROOT
- api: environment.control.ApplyNodeGroupData
nodeGroup: cp
data:
restart: true
- return: installSuccess
responses:
installSuccess:
result: 0
message: "Installation completed successfully!"
chmod +x add-sftp.sh # Corrected the filename here
- success: |
Add-on installed successfully!
To create additional SFTP accounts, click on the "Add new SFTP user" button.
onUninstall:
- cmd[cp]: rm -f ./add-sftp.sh
- return:
result: 0
message: "Add-on uninstalled successfully and script file removed."
actions:
add_sftp_user:
- cmd[cp]: ./add-sftp.sh
- return:
result: 0
output: "SFTP user added successfully!"
success:
email: |-
email: |
Connection Details<br><br>
SFTP Host: ${globals.sftpHost}<br><br>
Port: ${globals.sftpPort}<br>
@ -61,13 +57,14 @@ actions:
Username: ${globals.username}<br><br>
Password: ${globals.password}
text:
en: |-
en: |
Connection Details
SFTP Host: ${globals.sftpHost}
Port: ${globals.sftpPort}
Login Credentials
Username: ${globals.username}