mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-01 19:41:48 +00:00
Check for any non-0 exit code for apache2 detection
This commit is contained in:
parent
1d74aa64b9
commit
6c8c5232ff
|
@ -69,7 +69,7 @@ www-data ALL=NOPASSWD: /sbin/shutdown, /sbin/reboot
|
|||
|
||||
function stopOldWebInterface() {
|
||||
APACHE_STATUS=$(sudo systemctl status apache2 &> /dev/null; echo $?)
|
||||
if [ $APACHE_STATUS -ne 4 ] ; then
|
||||
if [ $APACHE_STATUS -eq 0 ] ; then
|
||||
echo "Stopping old Apache2 RaSCSI Web..."
|
||||
sudo systemctl disable apache2
|
||||
sudo systemctl stop apache2
|
||||
|
|
Loading…
Reference in New Issue
Block a user