diff --git a/seahub/scripts/create_data_links.sh b/seahub/scripts/create_data_links.sh index 04ff77a..7566b65 100644 --- a/seahub/scripts/create_data_links.sh +++ b/seahub/scripts/create_data_links.sh @@ -33,3 +33,10 @@ for d in ${dirs[*]}; do rm -rf /opt/seafile/$d && ln -sf $src /opt/seafile fi 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 \ No newline at end of file