mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
owncloud: Do Apache reload instead of restart
Restarting Apache breaks existing connections. This includes the connection on which the Plinth's user has made the ownCloud enable/disable request. This leads to an almost certain 'Connection Interupted' message to the client when changes to ownCloud are submitted. On the other hand, 'reload' is sufficient and 'restart' is not required. It is also faster and recommended by 'a2enconf' and 'a2disconf' commands.
This commit is contained in:
parent
9ab948012e
commit
771581a75f
@ -91,7 +91,7 @@ EOF
|
||||
# 'adminpass' => '$adminpwd',
|
||||
|
||||
a2enconf owncloud 2>&1 | logger -t owncloud-setup
|
||||
service apache2 restart 2>&1 | logger -t owncloud-setup
|
||||
service apache2 reload 2>&1 | logger -t owncloud-setup
|
||||
|
||||
# Initialize application and database tables by visiting
|
||||
# the front page. This only work if admin user and
|
||||
@ -99,10 +99,10 @@ EOF
|
||||
#wget --quiet http://$(uname -n)/owncloud/index.php
|
||||
else
|
||||
a2enconf owncloud 2>&1 | logger -t owncloud-setup
|
||||
service apache2 restart 2>&1 | logger -t owncloud-setup
|
||||
service apache2 reload 2>&1 | logger -t owncloud-setup
|
||||
fi
|
||||
else
|
||||
a2disconf owncloud 2>&1 | logger -t owncloud-setup
|
||||
service apache2 restart 2>&1 | logger -t owncloud-setup
|
||||
service apache2 reload 2>&1 | logger -t owncloud-setup
|
||||
fi
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user