Migration from restart_services to restart-services and removing colors
This commit is contained in:
parent
cc65f3fb98
commit
e17deddef5
|
@ -1,7 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
PATH="$PATH:/usr/sbin:/sbin"
|
PATH="$PATH:/usr/sbin:/sbin"
|
||||||
TERM=vt100
|
|
||||||
|
|
||||||
TMP_FILE=$(mktemp)
|
TMP_FILE=$(mktemp)
|
||||||
MAIL=$(mktemp)
|
MAIL=$(mktemp)
|
||||||
|
@ -22,7 +21,7 @@ if [ "$(grep '\[ebuild U' ${TMP_FILE})" != '' ]; then
|
||||||
cat ${TMP_FILE} >> ${MAIL}
|
cat ${TMP_FILE} >> ${MAIL}
|
||||||
|
|
||||||
if [ "$(lsof -n | awk '{ if ($5 == "DEL") print $9 }' | sort -u)" ]; then
|
if [ "$(lsof -n | awk '{ if ($5 == "DEL") print $9 }' | sort -u)" ]; then
|
||||||
restart_services -u >> ${MAIL}
|
restart-services --no-color -u >> ${MAIL}
|
||||||
fi
|
fi
|
||||||
emerge -p --depclean --with-bdeps\=y >> ${MAIL}
|
emerge -p --depclean --with-bdeps\=y >> ${MAIL}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue