mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-25 02:47:04 +00:00
Nextcloud install shouldn't fail if php-fpm isn't already running
This commit is contained in:
parent
edf42df835
commit
d0423afd18
@ -161,9 +161,9 @@ owncloud_hash=beab41f6a748a43f0accfa6a9808387aef718c61
|
|||||||
if [ ! -d /usr/local/lib/owncloud/ ] \
|
if [ ! -d /usr/local/lib/owncloud/ ] \
|
||||||
|| ! grep -q $owncloud_ver /usr/local/lib/owncloud/version.php; then
|
|| ! grep -q $owncloud_ver /usr/local/lib/owncloud/version.php; then
|
||||||
|
|
||||||
# Stop php-fpm
|
# Stop php-fpm if running. If theyre not running (which happens on a previously failed install), dont bail.
|
||||||
hide_output service php7.0-fpm stop
|
service php7.0-fpm stop &> /dev/null || /bin/true
|
||||||
hide_output service php5-fpm stop
|
service php5-fpm stop &> /dev/null || /bin/true
|
||||||
|
|
||||||
# Backup the existing ownCloud/Nextcloud.
|
# Backup the existing ownCloud/Nextcloud.
|
||||||
# Create a backup directory to store the current installation and database to
|
# Create a backup directory to store the current installation and database to
|
||||||
|
Loading…
Reference in New Issue
Block a user