build: adjustments for Raspbian

This commit is contained in:
nachoparker 2018-10-23 18:22:09 -06:00
parent 03d435224c
commit 50043da8e3
3 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,5 @@
#!/bin/bash
PHPVER=7.2
source /usr/local/etc/library.sh
set -e
@ -10,7 +8,7 @@ set -e
echo "Stopping apache"
apachectl graceful-stop
echo "Stopping PHP-fpm"
killall php-fpm${PHPVER}
pkill -f php-fpm
echo "Stopping mariaDB"
mysqladmin -u root shutdown
echo "LAMP cleanup complete"

View File

@ -85,7 +85,7 @@ EOF
# check every hour at 40th minute
echo "40 */${CHECKINTERVAL} * * * root /usr/local/bin/ncp-notify-update && /usr/local/bin/ncp-notify-unattended-upgrade" > /etc/cron.d/ncp-notify-updates
service cron restart
[[ -f /run/crond.pid ]] && service cron restart
echo "update web notifications enabled"
}

View File

@ -14,6 +14,7 @@ install()
mysqladmin -u root shutdown
kill $( cat /run/redis/redis-server.pid )
[[ -f /run/crond.pid ]] && kill $( cat /run/crond.pid )
pkill -f php-fpm
# cleanup all NCP extras
source /usr/local/etc/library.sh