link seahub.conf to shared config folder

This commit is contained in:
Gerrit Gogel 2021-01-26 15:18:23 +01:00
parent 6a0cdbf95c
commit e7cca70bb2

View file

@ -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