Add configuration-File support.
This commit is contained in:
parent
a85e2a090e
commit
ce035d9186
3 changed files with 73 additions and 10 deletions
|
|
@ -1,7 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Default configurations:
|
||||
DEPLOY_HELPER_CONTENT_DIR="website/output"
|
||||
|
||||
if ! test -d website/output
|
||||
if test -f .deployment-helper
|
||||
then
|
||||
# shellcheck source=/dev/null
|
||||
. .deployment-helper
|
||||
fi
|
||||
|
||||
|
||||
if ! test -d "${DEPLOY_HELPER_CONTENT_DIR}"
|
||||
then
|
||||
echo "Website-Build not found"
|
||||
exit 1
|
||||
|
|
@ -16,6 +25,9 @@ then
|
|||
fi
|
||||
|
||||
|
||||
lftp -e 'set sftp:auto-confirm yes; mirror -R ./website/output/ ./web/; bye' --env-password -u ${SSH_USER} sftp://${SSH_HOST}
|
||||
lftp -e "set sftp:auto-confirm yes; mirror -R ${DEPLOY_HELPER_CONTENT_DIR} ./web/; bye" \
|
||||
--env-password \
|
||||
-u ${SSH_USER} \
|
||||
sftp://${SSH_HOST}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue