Change the synchronized path to /library for consistency
This commit is contained in:
@@ -5,7 +5,7 @@ services:
|
||||
image: flowgunso/seafile-client:latest
|
||||
restart: on-failure
|
||||
volumes:
|
||||
- your_shared_volume:/volume
|
||||
- your_shared_volume:/library
|
||||
environment:
|
||||
SEAF_SERVER_URL: "" # The URL to your Seafile server.
|
||||
SEAF_USERNAME: "" # Your Seafile username.
|
||||
|
||||
@@ -51,7 +51,7 @@ RUN apt-get update && apt-get install -y gnupg && \
|
||||
/var/cache/debconf/*.dat-old \
|
||||
/var/lib/apt/lists/* \
|
||||
/import-seafile-apt-key.sh && \
|
||||
mkdir /volume/ && \
|
||||
mkdir /library/ && \
|
||||
groupadd -g $GID -o $UNAME && \
|
||||
useradd -m -u $UID -g $GID -o -s /bin/bash $UNAME && \
|
||||
mkdir /home/$UNAME/.seafile && \
|
||||
|
||||
@@ -34,7 +34,7 @@ while [ ! -S $seafile_sock ]; do sleep 1; done
|
||||
[[ "$SEAF_DOWNLOAD_LIMIT" ]] && seaf-cli config -k download_limit -v $SEAF_DOWNLOAD_LIMIT
|
||||
|
||||
# Build the seaf-cli sync command.
|
||||
cmd="seaf-cli sync -u $SEAF_USERNAME -p $SEAF_PASSWORD -s $SEAF_SERVER_URL -l $SEAF_LIBRARY_UUID -d /volume"
|
||||
cmd="seaf-cli sync -u $SEAF_USERNAME -p $SEAF_PASSWORD -s $SEAF_SERVER_URL -l $SEAF_LIBRARY_UUID -d /library"
|
||||
[[ "$SEAF_2FA_SECRET" ]] && cmd+=" -a $(oathtool --base32 --totp $SEAF_2FA_SECRET)"
|
||||
[[ "$SEAF_LIBRARY_PASSWORD" ]] && cmd+=" -e $SEAF_LIBRARY_PASSWORD"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user