#!/bin/sh

SEAFILE_HOME=/var/lib/seafile
SEAFILE_DEFAULT=$SEAFILE_HOME/default

if [[ ! -h $SEAFILE_DEFAULT/seafile-server/seahub ]]; then
    su seafile -c "mkdir -m 755 -p $SEAFILE_DEFAULT/seafile-server" 2>/dev/null
    su seafile -c "cp -R /usr/share/seahub $SEAFILE_DEFAULT/seafile-server" 2>/dev/null
fi