added silent mode
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Paolo Asperti 2021-05-04 17:03:29 +02:00
parent d8fa38b097
commit ee9f24e1ba
Signed by: paspo
GPG Key ID: 06D46905D19D5182
3 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,7 @@ ENV NEXTCLOUD_UPLIMIT=
ENV NEXTCLOUD_DOWNLIMIT=
ENV NEXTCLOUD_EXCLUDEFILE=
ENV NEXTCLOUD_UNSYNCFILE=
ENV NEXTCLOUD_SILENT=
COPY start.sh /start.sh

View File

@ -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 |

View File

@ -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}"