Commit 4e917eef authored by anderson's avatar anderson

Update Dockerfile-pro, conf/entrypoint.sh files

parent d5676d96
FROM registry.infraops.info/sistemas/debian/x86:stretch
ENV SEAFILE_DOWNLOAD=https://download.seafile.com/d/6e5297246c \
ENV SEAFILE_DOWNLOAD=https://download.seafile.com/d/6e5297246c/files \
SEAFILE_SERVER_STATUS=/opt/seafile/server-status \
SEAFILE_ADDRESS= \
DEBIAN_FRONTEND=noninteractive
......
......@@ -94,11 +94,10 @@ download_seafile(){
then
mkdir ${SEAFILE_SERVER_PATH}
fi
echo $(curl -sL "${SEAFILE_DOWNLOAD}"/?p=/pro/&mode=list) \
| grep -oE "seafile-pro-server_"${SEAFILE_VERSION}"_x86-64.tar.gz&dl=1" > SEAFILE_TAR
echo "Download Seafile link: "${SEAFILE_DOWNLOAD}"/files/?p=/pro/$(cat SEAFILE_TAR)"
SEAFILE_TARGZ="seafile-pro-server_"${SEAFILE_VERSION}"_x86-64.tar.gz&dl=1"
echo "Download Seafile link: "${SEAFILE_DOWNLOAD}"/?p=/pro/seafile-pro-server_"${SEAFILE_VERSION}"_x86-64.tar.gz&dl=1"
sync; wget -O - ${SEAFILE_DOWNLOAD}/files/?p=/pro/$(cat SEAFILE_TAR) | tar xzf - --strip-components=1 -C ${SEAFILE_SERVER_PATH};
sync; wget -O - ${SEAFILE_DOWNLOAD}/files/?p=/pro/${SEAFILE_TARGZ} | tar xzf - --strip-components=1 -C ${SEAFILE_SERVER_PATH};
crudini --set ${SEAFILE_SERVER_STATUS} seafile-server DOWNLOADED true
chown seafile:seafile ${SEAFILE_SERVER_PATH} -R
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment