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
diff options
context:
space:
mode:
Diffstat (limited to 'post-inst.sh')
-rw-r--r--post-inst.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/post-inst.sh b/post-inst.sh
index b7b0cf60..9867c49f 100644
--- a/post-inst.sh
+++ b/post-inst.sh
@@ -15,13 +15,14 @@ configure()
# stop services
pkill -x redis-server
- pgrep -x mysqld &>/dev/null && mysqladmin -u root shutdown
+ [[ -f /run/mysqld/mysqld.pid ]] && mysqladmin -u root shutdown
[[ -f /run/crond.pid ]] && kill "$(cat /run/crond.pid)"
pkill -f php-fpm
pkill -f notify_push
+ killall postdrop
+ killall sendmail
# cleanup all NCP extras
- source /usr/local/etc/library.sh
find /usr/local/bin/ncp -name '*.sh' | \
while read script; do cleanup_script $script; done