Fix running script
parent
1c94337b89
commit
693e8bc687
|
@ -1,15 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Become root
|
||||
# Root User
|
||||
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
|
||||
echo -e "\nMatch User user*\nPasswordAuthentication yes" >> /etc/ssh/sshd_config
|
||||
|
||||
# Adjust permissions
|
||||
chown root:root /var/www/webroot/ROOT
|
||||
chmod 755 /var/www/webroot/ROOT
|
||||
chmod 755 /var/www/webroot/ROOT
|
|
@ -38,7 +38,7 @@ onUninstall:
|
|||
|
||||
actions:
|
||||
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
|
||||
|
||||
responses:
|
||||
|
|
Loading…
Reference in New Issue