kopia lustrzana https://github.com/jprochazka/adsb-receiver
Change commands from init to service.
rodzic
e1951cb9a4
commit
fb0843d409
|
@ -222,7 +222,7 @@ if [[ $(dpkg-query -W -f='${STATUS}' dump1090-mutability 2>/dev/null | grep -c "
|
|||
ChangeConfig "DEVICE" ${DUMP1090_DEVICE_ID} "/etc/default/dump1090-mutability"
|
||||
echo -e "\e[94m Restarting dump1090-mutability...\e[97m"
|
||||
echo -e ""
|
||||
sudo /etc/init.d/dump1090-mutability restart
|
||||
sudo service dump1090-mutability force-reload
|
||||
echo -e ""
|
||||
|
||||
# Get the latitude and longitude set in the dump1090-mutability configuration file to be used later.
|
||||
|
|
|
@ -117,7 +117,7 @@ if [[ $(dpkg-query -W -f='${STATUS}' dump1090-mutability 2>/dev/null | grep -c "
|
|||
# Reload dump1090-mutability to ensure all changes take effect.
|
||||
echo -e "\e[94m Reloading dump1090-mutability...\e[97m"
|
||||
echo -e ""
|
||||
sudo /etc/init.d/dump1090-mutability force-reload
|
||||
sudo service dump1090-mutability force-reload
|
||||
fi
|
||||
|
||||
# Download Heywhatsthat.com maximum range rings if the user wishes them to be displayed.
|
||||
|
@ -207,22 +207,6 @@ if [[ $(dpkg-query -W -f='${STATUS}' dump1090-fa 2>/dev/null | grep -c "ok insta
|
|||
fi
|
||||
fi
|
||||
|
||||
if [[ -n "${FLIGHTAWARE_LOGIN}" ]] && [[ -n "${FLIGHTAWARE_PASSWORD1}" ]] ; then
|
||||
# Set the supplied user name and password in the configuration.
|
||||
echo -e "\e[94m Setting the flightaware-user setting using piaware-config...\e[97m"
|
||||
echo -e ""
|
||||
sudo piaware-config flightaware-user ${FLIGHTAWARE_LOGIN}
|
||||
echo -e ""
|
||||
echo -e "\e[94m Setting the flightaware-password setting using piaware-config...\e[97m"
|
||||
echo -e ""
|
||||
sudo piaware-config flightaware-password ${FLIGHTAWARE_PASSWORD1}
|
||||
echo -e ""
|
||||
echo -e "\e[94m Restarting PiAware to ensure changes take effect...\e[97m"
|
||||
echo -e ""
|
||||
sudo /etc/init.d/piaware restart
|
||||
echo -e ""
|
||||
fi
|
||||
|
||||
# PiAware configuration is now complete.
|
||||
echo -e ""
|
||||
echo -e "\e[93m ------------------------------------------------------------------------------"
|
||||
|
|
|
@ -94,7 +94,7 @@ if [[ "${DUMP1090_INSTALLED}" = "true" ]] && [[ "${DUMP1090_FORK}" = "mutability
|
|||
|
||||
echo -e "\e[94m Reloading dump1090-mutability...\e[97m"
|
||||
echo ""
|
||||
sudo /etc/init.d/dump1090-mutability force-reload 2>&1
|
||||
sudo service dump1090-mutability force-reload 2>&1
|
||||
echo ""
|
||||
fi
|
||||
|
||||
|
@ -350,7 +350,7 @@ echo -e ""
|
|||
|
||||
echo -e "\e[94m Reloading collectd so the new configuration is used...\e[97m"
|
||||
echo -e ""
|
||||
sudo /etc/init.d/collectd force-reload 2>&1
|
||||
sudo service collectd force-reload
|
||||
echo -e ""
|
||||
|
||||
## EDIT CRONTAB
|
||||
|
|
|
@ -284,7 +284,7 @@ fi
|
|||
# Reload Lighttpd after installing the prerequisite packages.
|
||||
echo -e "\e[94m Reloading Lighttpd...\e[97m"
|
||||
echo -e ""
|
||||
sudo /etc/init.d/lighttpd force-reload
|
||||
sudo service lighttpd force-reload
|
||||
|
||||
## SETUP THE PORTAL WEBSITE
|
||||
|
||||
|
@ -402,11 +402,11 @@ fi
|
|||
if pgrep "lighttpd" > /dev/null; then
|
||||
echo -e "\e[94m Reloading Lighttpd...\e[97m"
|
||||
echo -e ""
|
||||
sudo /etc/init.d/lighttpd force-reload
|
||||
sudo service lighttpd force-reload
|
||||
else
|
||||
echo -e "\e[94m Starting Lighttpd...\e[97m"
|
||||
echo -e ""
|
||||
sudo /etc/init.d/lighttpd start
|
||||
sudo service lighttpd start
|
||||
fi
|
||||
|
||||
## SETUP THE MYSQL DATABASE
|
||||
|
|
Ładowanie…
Reference in New Issue