Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/ncp-config.d/nc-nextcloud.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/etc/ncp-config.d/nc-nextcloud.sh b/etc/ncp-config.d/nc-nextcloud.sh
index f4bb8d61..d8bb7750 100644
--- a/etc/ncp-config.d/nc-nextcloud.sh
+++ b/etc/ncp-config.d/nc-nextcloud.sh
@@ -68,16 +68,16 @@ install()
usermod -a -G redis www-data
- [[ "$DOCKERBUILD" != 1 ]] && {
+ # refresh configuration, only needed in curl installer
+ [[ ! -f /.ncp-image ]] && {
systemctl restart redis-server
systemctl enable redis-server
- # need to restart php
- service php7.0-fpm stop
- service mysql stop
+ systemctl stop php7.0-fpm
+ systemctl stop mysql
sleep 0.5
- service php7.0-fpm start
- service mysql start
+ systemctl start php7.0-fpm
+ systemctl start mysql
}
# service to randomize passwords on first boot
@@ -94,7 +94,7 @@ ExecStart=/bin/bash /usr/local/bin/ncp-provisioning.sh
[Install]
WantedBy=multi-user.target
EOF
- systemctl enable nc-provisioning
+ [[ "$DOCKERBUILD" != 1 ]] && systemctl enable nc-provisioning
return 0
}