Fix running script
parent
1c94337b89
commit
693e8bc687
|
@ -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
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue