From 3bba4d9705b4970987b3c2c6dca8d46b1ba2effe Mon Sep 17 00:00:00 2001 From: Anthony Date: Fri, 27 Oct 2023 00:21:57 +0800 Subject: [PATCH] Fix syntax error --- manifest.jps | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/manifest.jps b/manifest.jps index e9240fe..5899536 100644 --- a/manifest.jps +++ b/manifest.jps @@ -1,5 +1,4 @@ type: update -baseUrl: https://deploy.mightybox.io/tony/Add-SFTP-User/ name: Add SFTP User targetNodes: @@ -30,20 +29,20 @@ globals: onInstall: - cmd[cp]: | curl -O https://deploy-proxy.mightybox.io/addons/add-sftp-user/raw/branch/main/add-sftp.sh - chmod +x add_user_sftp.sh + 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]: sudo rm -f ./add-sftp.sh + - 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]: sudo ./add-sftp.sh + - cmd[cp]: ./add-sftp.sh - return: result: 0 output: "SFTP user added successfully!"