Make avatars folder persistent.

This commit is contained in:
Shuai Lin 2016-11-25 16:27:35 +08:00
parent 569c24cea5
commit e5865b7f3d

View file

@ -29,4 +29,9 @@ if [[ ! -e /opt/seafile/seafile-server-latest ]]; then
ln -sf /opt/seafile/seafile-server-$SEAFILE_VERSION /opt/seafile/seafile-server-latest
fi
source_avatars_dir=/opt/seafile/seafile-server-${SEAFILE_VERSION}/seahub/media/avatars
rm -rf $source_avatars_dir
ln -sf /shared/seafile/seahub-data/avatars $source_avatars_dir
# TODO: create avatars link