Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Update deploy
  • Loading branch information
cdujeu committed Jul 18, 2013
1 parent 362f6b8 commit 2d44eaa
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 4 deletions.
26 changes: 22 additions & 4 deletions dist/phing/deploy.properties.sample
Expand Up @@ -3,7 +3,25 @@ admin_user=admin
admin_password=password

# SAMBA CONFIGS
ws.samba.host=192.168.0.205
ws.samba.share=homes
ws.samba.user=samba-user
ws.samba.password=sambapwd
ws.samba.host=
ws.samba.share=
ws.samba.user=
ws.samba.password=

#FTP server
ws.ftp.host=
ws.ftp.user=
ws.ftp.password=
ws.ftp.path=

#sFTP server
ws.sftp.host=
ws.sftp.user=
ws.sftp.password=
ws.sftp.path=

#WebDAV
ws.webdav.host=
ws.webdav.user=
ws.webdav.password=
ws.webdav.uri=
21 changes: 21 additions & 0 deletions dist/phing/deploy.xml
Expand Up @@ -46,6 +46,27 @@
action="create_repository"
params='--DISPLAY="smb" --DRIVER=smb --json_data={\"HOST\":\"${ws.samba.host}\",\"PATH\":\"${ws.samba.share}\",\"USER\":\"${ws.samba.user}\",\"PASS\":\"${ws.samba.password}\"}'/>

<ajaxplorer_sdk
cliPath="${cliPath}"
user="${admin_user}"
password="${admin_password}"
action="create_repository"
params='--DISPLAY="ftp" --DRIVER=ftp --json_data={\"HOST\":\"${ws.ftp.host}\",\"PATH\":\"${ws.ftp.path}\",\"USER\":\"${ws.ftp.user}\",\"PASS\":\"${ws.ftp.password}\"}'/>

<ajaxplorer_sdk
cliPath="${cliPath}"
user="${admin_user}"
password="${admin_password}"
action="create_repository"
params='--DISPLAY="sftp" --DRIVER=sftp --json_data={\"HOST\":\"${ws.sftp.host}\",\"PATH\":\"${ws.sftp.path}\",\"USER\":\"${ws.sftp.user}\",\"PASS\":\"${ws.sftp.password}\"}'/>

<ajaxplorer_sdk
cliPath="${cliPath}"
user="${admin_user}"
password="${admin_password}"
action="create_repository"
params='--DISPLAY="webdav" --DRIVER=webdav --json_data={\"HOST\":\"${ws.webdav.host}\",\"URI\":\"${ws.webdav.uri}\",\"USER\":\"${ws.webdav.user}\",\"PASS\":\"${ws.webdav.password}\"}'/>

<!-- Some cleaning before accessing via HTTP -->
<delete file="${cliPath}/data/cache/i18n/en_plugins_messages.ser"/>
<exec command="chmod -R a+rw ${cliPath}/data"/>
Expand Down

0 comments on commit 2d44eaa

Please sign in to comment.