mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Remove Ram drive
This commit is contained in:
@@ -48,6 +48,11 @@ bashio::log.info "Adapting webui"
|
|||||||
echo "... removing System Controls from webui as should be used from HA"
|
echo "... removing System Controls from webui as should be used from HA"
|
||||||
sed -i '/>System Controls/d' "$HOME"/BirdNET-Pi/homepage/views.php
|
sed -i '/>System Controls/d' "$HOME"/BirdNET-Pi/homepage/views.php
|
||||||
|
|
||||||
|
# Remove services tab
|
||||||
|
echo "... removing Ram drive from webui as it is handled from HA"
|
||||||
|
sed -i '/Ram drive/{n;s/center"/center" style="display: none;"/;}' "$HOME"/BirdNET-Pi/scripts/service_controls.php
|
||||||
|
sed -i '/Ram drive/d' "$HOME"/BirdNET-Pi/scripts/service_controls.php
|
||||||
|
|
||||||
# Correct the phpsysinfo for the correct gotty service
|
# Correct the phpsysinfo for the correct gotty service
|
||||||
gottyservice="$(pgrep -l "gotty" | awk '{print $NF}' | head -n 1)"
|
gottyservice="$(pgrep -l "gotty" | awk '{print $NF}' | head -n 1)"
|
||||||
echo "... using $gottyservice in phpsysinfo"
|
echo "... using $gottyservice in phpsysinfo"
|
||||||
|
|||||||
Reference in New Issue
Block a user