From 1c94337b89c487bbca4db42204f9a517614f4f31 Mon Sep 17 00:00:00 2001 From: Anthony Date: Sat, 28 Oct 2023 00:31:40 +0800 Subject: [PATCH] Fix permission issues --- manifest.jps | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/manifest.jps b/manifest.jps index 9c7b819..54703f3 100644 --- a/manifest.jps +++ b/manifest.jps @@ -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 @@ -78,4 +73,4 @@ buttons: - settings: sfpform action: add_sftp_user caption: Add SFTP/SSH User - confirmText: "Are you sure you want to add this SFTP user?" + confirmText: "Are you sure you want to add this SFTP user?" \ No newline at end of file