mirror of
https://github.com/FAUSheppy/jeffrey_miller_flask_ftp
synced 2025-12-06 07:51:34 +01:00
add allow write to default setup
This commit is contained in:
7
setup.sh
7
setup.sh
@@ -14,8 +14,13 @@ ssh -t ${TARGET} "${CMD_FLASK_USER}"
|
||||
ssh -t ${TARGET} "${CMD_SUDOERS_ADD}"
|
||||
ssh -t ${TARGET} "${CMD_SUDOERS_DEL}"
|
||||
|
||||
#rsync -rP ../jeffrey_miller_flask_ftp ${TARGET}:/home/flask/
|
||||
rsync -rP ../jeffrey_miller_flask_ftp ${TARGET}:/home/flask/
|
||||
|
||||
CMD_OWNERSHIP="chown -R flask:flask /home/flask"
|
||||
|
||||
ssh -t ${TARGET} "${CMD_OWNERSHIP}"
|
||||
|
||||
CMD_SET_FTP_WRITE_YES="sed -i 's/\#write_enable=YES/write_enable=YES/' /etc/vsftpd.conf"
|
||||
CMD_RESTART_FTP="systemctl restart vsftpd"
|
||||
ssh -t ${TARGET} "${CMD_SET_FTP_WRITE_YES}"
|
||||
ssh -t ${TARGET} "${CMD_RESTART_FTP}"
|
||||
|
||||
Reference in New Issue
Block a user