seafile-containerized/image/seafile/create_data_links.sh
2016-11-11 12:56:47 +08:00

29 lines
411 B
Bash
Executable file

#!/bin/bash
set -e
set -o pipefail
if [[ $SEAFILE_BOOTSRAP != "" ]]; then
exit 0
fi
dirs=(
conf
ccnet
logs
seafile-data
seahub-data
seahub.db
)
for d in ${dirs[*]}; do
src=/shared/$d
if [[ -e $src ]]; then
ln -sf $src /opt/seafile/
fi
done
ln -sf /opt/seafile/seafile-server-${SEAFILE_VERSION} /opt/seafile/seafile-server-latest
# TODO: create avatars link