mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 17:05:32 +00:00
99d2c8456b
At this moment, we only support running mysql server inside the container. Support for running mysql(and memcached) in a separate container would be added later.
34 lines
564 B
Bash
Executable file
34 lines
564 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
set -o pipefail
|
|
|
|
if [[ $SEAFILE_BOOTSRAP != "" ]]; then
|
|
exit 0
|
|
fi
|
|
|
|
dirs=(
|
|
conf
|
|
ccnet
|
|
seafile-data
|
|
seahub-data
|
|
seahub.db
|
|
)
|
|
|
|
for d in ${dirs[*]}; do
|
|
src=/shared/seafile/$d
|
|
if [[ -e $src ]]; then
|
|
ln -sf $src /opt/seafile/
|
|
fi
|
|
done
|
|
|
|
if [[ -e /shared/logs/seafile ]]; then
|
|
ln -sf /shared/logs/seafile/ /opt/seafile/logs
|
|
fi
|
|
|
|
if [[ ! -e /opt/seafile/seafile-server-latest ]]; then
|
|
ln -sf /opt/seafile/seafile-server-$SEAFILE_VERSION /opt/seafile/seafile-server-latest
|
|
fi
|
|
|
|
# TODO: create avatars link
|