added silent mode
This commit is contained in:
parent
d8fa38b097
commit
ee9f24e1ba
@ -18,6 +18,7 @@ ENV NEXTCLOUD_UPLIMIT=
|
||||
ENV NEXTCLOUD_DOWNLIMIT=
|
||||
ENV NEXTCLOUD_EXCLUDEFILE=
|
||||
ENV NEXTCLOUD_UNSYNCFILE=
|
||||
ENV NEXTCLOUD_SILENT=
|
||||
|
||||
COPY start.sh /start.sh
|
||||
|
||||
|
@ -61,6 +61,7 @@ docker-compose up -d
|
||||
| NEXTCLOUD_DOWNLIMIT | | If set, download speed will be limited. (KB/s) |
|
||||
| NEXTCLOUD_EXCLUDEFILE | | Path to a file, inside the container, which contains a list of excluded directories/files |
|
||||
| NEXTCLOUD_UNSYNCFILE | | Path to a file, inside the container, which contains a list of remote unsynced folders (selective sync) |
|
||||
| NEXTCLOUD_SILENT | | If set to "1", the client will run in silent mode, with a lot less log messages |
|
||||
| USER_NAME | nextcloudclient | Internal username used by nextcloud client |
|
||||
| USER_UID | 1000 | Internal UID used by nextcloud client |
|
||||
| USER_GID | 1000 | Internal GID used by nextcloud client |
|
||||
|
3
start.sh
3
start.sh
@ -61,6 +61,9 @@ if [ ! "${NEXTCLOUD_UNSYNCFILE}" = "" ] ; then
|
||||
PARAMS="${PARAMS} --unsyncedfolders '${NEXTCLOUD_UNSYNCFILE}'"
|
||||
fi
|
||||
fi
|
||||
if [ "${NEXTCLOUD_SILENT}" = "1" ] ; then
|
||||
PARAMS="${PARAMS} --silent"
|
||||
fi
|
||||
|
||||
PARAMS="${PARAMS} --non-interactive -u ${NEXTCLOUD_USERNAME} -p ${NEXTCLOUD_PASSWORD} ${NEXTCLOUD_DIR} ${NEXTCLOUD_URL}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user