Compare commits
2 Commits
afa42cd223
...
4836348b6c
Author | SHA1 | Date |
---|---|---|
|
4836348b6c | |
|
ef95f6a8cf |
13
manifest.jps
13
manifest.jps
|
@ -26,17 +26,17 @@ globals:
|
|||
|
||||
onInstall:
|
||||
- cmd[cp]: |-
|
||||
sudo su
|
||||
curl -sO 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
|
||||
sudo echo -e "\nMatch User user*\nPasswordAuthentication yes" >> /etc/ssh/sshd_config
|
||||
sudo chown root:root /var/www/webroot/ROOT
|
||||
sudo chmod 755 /var/www/webroot/ROOT
|
||||
- api: environment.control.ApplyNodeGroupData
|
||||
nodeGroup: cp
|
||||
data:
|
||||
restart: true
|
||||
return: "Installed Successfully"
|
||||
- return: installSuccess
|
||||
|
||||
|
||||
onUninstall:
|
||||
- cmd[cp]: rm -f ./add-sftp.sh
|
||||
|
@ -47,6 +47,9 @@ actions:
|
|||
- return: sftpSuccess
|
||||
|
||||
responses:
|
||||
installSuccess:
|
||||
result: 0
|
||||
message: "Installed Successfully"
|
||||
sftpSuccess:
|
||||
type: success
|
||||
email: |-
|
||||
|
|
Loading…
Reference in New Issue