add param PLUGIN_CHMOD
This commit is contained in:
parent
6324473559
commit
12f35a5741
@ -26,6 +26,12 @@ if [ -z "$PLUGIN_SRC_DIR" ]; then
|
|||||||
PLUGIN_SRC_DIR="/"
|
PLUGIN_SRC_DIR="/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$PLUGIN_CHMOD" ]; then
|
||||||
|
PLUGIN_CHMOD=""
|
||||||
|
else
|
||||||
|
PLUGIN_CHMOD="-p"
|
||||||
|
fi
|
||||||
|
|
||||||
PLUGIN_EXCLUDE_STR=""
|
PLUGIN_EXCLUDE_STR=""
|
||||||
PLUGIN_INCLUDE_STR=""
|
PLUGIN_INCLUDE_STR=""
|
||||||
|
|
||||||
@ -44,5 +50,5 @@ lftp -e "set xfer:log 1; \
|
|||||||
set ftp:ssl-protect-data $PLUGIN_SECURE; \
|
set ftp:ssl-protect-data $PLUGIN_SECURE; \
|
||||||
set ssl:verify-certificate $PLUGIN_VERIFY; \
|
set ssl:verify-certificate $PLUGIN_VERIFY; \
|
||||||
set ssl:check-hostname $PLUGIN_VERIFY; \
|
set ssl:check-hostname $PLUGIN_VERIFY; \
|
||||||
mirror --verbose -p -R $PLUGIN_INCLUDE_STR $PLUGIN_EXCLUDE_STR $(pwd)$PLUGIN_SRC_DIR $PLUGIN_DEST_DIR" \
|
mirror --verbose $PLUGIN_CHMOD -R $PLUGIN_INCLUDE_STR $PLUGIN_EXCLUDE_STR $(pwd)$PLUGIN_SRC_DIR $PLUGIN_DEST_DIR" \
|
||||||
-u $FTP_USERNAME,$FTP_PASSWORD $PLUGIN_HOSTNAME
|
-u $FTP_USERNAME,$FTP_PASSWORD $PLUGIN_HOSTNAME
|
||||||
|
Loading…
x
Reference in New Issue
Block a user