Skip to content
Snippets Groups Projects
Commit 31dde5ec authored by Florent Thiery's avatar Florent Thiery
Browse files

also create watchfolders at install time

parent 8fa34c36
No related branches found
No related tags found
No related merge requests found
......@@ -23,8 +23,6 @@ def setup(interactive=True):
'mkdir -p /home/ftp/storage',
'mkdir -p /home/ftp/storage/incoming',
'mkdir -p /home/ftp/storage/watchfolder',
'chmod -R 775 /home/ftp/storage/incoming',
'chmod -R 775 /home/ftp/storage/watchfolder',
# Config
'echo "no" > /etc/pure-ftpd/conf/AllowDotFiles',
'echo "yes" > /etc/pure-ftpd/conf/CallUploadScript',
......@@ -51,10 +49,12 @@ def setup(interactive=True):
login, password = ftpuser.split(':')
cmds.extend([
'mkdir -p /home/ftp/storage/incoming/%s' % login,
'mkdir -p /home/ftp/storage/watchfolder/%s' % login,
'"%s/create_ftp_account.sh" %s "%s" /home/ftp/storage/incoming/%s' % (dir_path, login, password, login),
])
cmds.extend([
'chmod -R 775 /home/ftp/storage/incoming',
'chmod -R 775 /home/ftp/storage/watchfolder',
'chown -R ftp:ftp /home/ftp/storage',
'rm -f pureftpd.passwd.tmp',
'pure-pw mkdb',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment