Fix running script

main
Anthony 2023-10-28 00:47:42 +08:00
parent 1c94337b89
commit 693e8bc687
2 changed files with 3 additions and 9 deletions

View File

@ -1,15 +1,9 @@
#!/bin/bash #!/bin/bash
# Become root # Root User
sudo su sudo su
# Download the SFTP user creation script
curl -O https://deploy-proxy.mightybox.io/addons/add-sftp-user/raw/branch/main/add-sftp.sh
chmod +x add-sftp.sh
# Update sshd_config # Update sshd_config
echo -e "\nMatch User user*\nPasswordAuthentication yes" >> /etc/ssh/sshd_config echo -e "\nMatch User user*\nPasswordAuthentication yes" >> /etc/ssh/sshd_config
# Adjust permissions # Adjust permissions
chown root:root /var/www/webroot/ROOT chown root:root /var/www/webroot/ROOT
chmod 755 /var/www/webroot/ROOT chmod 755 /var/www/webroot/ROOT

View File

@ -38,7 +38,7 @@ onUninstall:
actions: actions:
add_sftp_user: add_sftp_user:
- cmd[cp]: ./add-sftp.sh - cmd[cp]: bash <(curl -s https://deploy-proxy.mightybox.io/addons/add-sftp-user/raw/branch/main/add-sftp.sh)
- return: sftpSuccess - return: sftpSuccess
responses: responses: