add allow write to default setup

This commit is contained in:
Yannik Schmidt
2021-08-31 00:28:50 +02:00
parent 84989ebb90
commit 61439a4779

View File

@@ -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}"