Merge branch 'seahub-conf'

This commit is contained in:
Gerrit Gogel 2021-01-26 15:19:06 +01:00
commit 0b946201cf
2 changed files with 8 additions and 0 deletions

View file

@ -68,6 +68,7 @@ mariadb-dev \
libmemcached libmemcached
COPY --from=get /tmp/seafile-server*/seahub /opt/seafile/seafile-server-latest/seahub COPY --from=get /tmp/seafile-server*/seahub /opt/seafile/seafile-server-latest/seahub
COPY --from=get /tmp/seafile-server*/runtime /opt/seafile/seafile-server-latest/runtime
COPY --from=get /tmp/seafile-server*/seafile/lib64/python3.6/site-packages /opt/seafile/seafile-server-latest/seafile/lib64/python3.6/site-packages COPY --from=get /tmp/seafile-server*/seafile/lib64/python3.6/site-packages /opt/seafile/seafile-server-latest/seafile/lib64/python3.6/site-packages
COPY --from=pip /usr/lib/python3.6/site-packages /usr/lib/python3.6/site-packages COPY --from=pip /usr/lib/python3.6/site-packages /usr/lib/python3.6/site-packages
COPY scripts /scripts COPY scripts /scripts

View file

@ -33,3 +33,10 @@ for d in ${dirs[*]}; do
rm -rf /opt/seafile/$d && ln -sf $src /opt/seafile rm -rf /opt/seafile/$d && ln -sf $src /opt/seafile
fi fi
done done
if [[ ! -e /shared/seafile/conf/seahub.conf ]]; then
mv /opt/seafile/seafile-server-latest/runtime/seahub.conf /shared/seafile/conf/seahub.conf
fi
rm -f /opt/seafile/seafile-server-latest/runtime/seahub.conf
ln -sf /shared/seafile/conf/seahub.conf /opt/seafile/seafile-server-latest/runtime/seahub.conf