seafile: added configuration file to turn fastcgi mode on/off

Signed-off-by: Gergely Kiss <mail.gery@gmail.com>
This commit is contained in:
Gergely Kiss
2015-05-02 13:55:16 +02:00
parent 69c18b28cd
commit b7396c9334
2 changed files with 25 additions and 9 deletions
+7
View File
@@ -90,6 +90,13 @@ if ! id -u seafile >/dev/null 2>&1; then
chown -R seafile:seafile /usr/share/seafile/
chmod -R o-rwx /usr/share/seafile/
if [ ! -f /etc/config/seafile ]; then
cat <<EOF > /etc/config/seafile
# Start Seahub in fastcgi mode - 1 = enable, 0 = disable
SEAHUB_FASTCGI=0
EOF
fi
if [ ! -d "/usr/share/seafile/seafile-data" ]
then
echo "*** Installation completed, running configuration script..."