Update install.sh

Fix redirection
This commit is contained in:
MegaV0lt 2019-09-28 17:57:10 +02:00 committed by GitHub
parent e879db921e
commit 8e1a0e4418
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ case "$INIT" in
systemd)
systemctl -q is-active log2ram && { echo 'ERROR: log2ram service is still running. Please run "sudo service log2ram stop" to stop it.' ; exit 1 ; } ;;
openrc)
rc-service log2ram status 2>1 >/dev/null && { echo 'ERROR: log2ram service is still running. Please run "sudo rc-service log2ram stop" to stop it.' ; exit 1 ; } ;;
rc-service log2ram status >/dev/null 2>&1 && { echo 'ERROR: log2ram service is still running. Please run "sudo rc-service log2ram stop" to stop it.' ; exit 1 ; } ;;
*) echo 'ERROR: could not detect init-system' ; exit 1
;;
esac