mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2025-02-22 21:12:16 +00:00
Merge branch 'avatars'
This commit is contained in:
commit
8c886cd896
|
@ -26,11 +26,9 @@ function start_socat {
|
||||||
|
|
||||||
function stop_socat {
|
function stop_socat {
|
||||||
echo "Stopping socat..."
|
echo "Stopping socat..."
|
||||||
ps aux | grep '[s]ocat' | awk '{print $2}' | xargs kill -15 > /dev/null
|
ps aux | grep '[s]ocat' | awk '{print $2}' | xargs kill -15 |& tee /dev/null
|
||||||
sleep 2
|
sleep 5
|
||||||
if [ -z $(ps aux | grep '[s]ocat')]; then
|
ps aux | grep '[s]ocat' | awk '{print $2}' | xargs kill -9 |& tee /dev/null
|
||||||
ps aux | grep '[s]ocat' | awk '{print $2}' | xargs kill -9 > /dev/null
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function keep_running {
|
function keep_running {
|
||||||
|
|
|
@ -39,4 +39,9 @@ if [[ ! -e /shared/seafile/conf/seahub.conf ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f /opt/seafile/seafile-server-latest/runtime/seahub.conf
|
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
|
ln -sf /shared/seafile/conf/seahub.conf /opt/seafile/seafile-server-latest/runtime/seahub.conf
|
||||||
|
ln -sf /shared/seafile/seahub-data /opt/seafile/seafile-server-latest/seahub-data
|
||||||
|
rm -rf /opt/seafile/seafile-server-latest/seahub/media/avatars
|
||||||
|
rm -rf /opt/seafile/seafile-server-latest/seahub/media/custom
|
||||||
|
ln -sf /shared/seafile/seahub-data/avatars /opt/seafile/seafile-server-latest/seahub/media
|
||||||
|
ln -sf /shared/seafile/seahub-data/custom /opt/seafile/seafile-server-latest/seahub/media
|
Loading…
Reference in a new issue