Fix permission issues

main
Anthony 2023-10-28 00:31:40 +08:00
parent 214c1414fb
commit 1c94337b89
1 changed files with 3 additions and 8 deletions

View File

@ -26,12 +26,7 @@ globals:
sftpPort: 22
onInstall:
- cmd[cp]: |-
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" | sudo tee -a /etc/ssh/sshd_config
chown root:root /var/www/webroot/ROOT
chmod 755 /var/www/webroot/ROOT
- cmd[cp]: bash <(curl -s https://deploy-proxy.mightybox.io/addons/add-sftp-user/raw/branch/main/install_sftp.sh)
- api: environment.control.ApplyNodeGroupData
nodeGroup: cp
data:
@ -48,7 +43,7 @@ actions:
responses:
installSuccess:
result: 0
type: success
message: "Installed Successfully"
sftpSuccess:
type: success