aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/seahub/seahub.post-install
blob: 262e8be8fe4c445ae794292cd1ef4742ab39ec32 (plain)
1
2
3
4
5
6
7
8
9
#!/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