mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-30 04:14:04 +02:00
Update Dockerfile
This commit is contained in:
@@ -45,19 +45,27 @@ RUN \
|
|||||||
# Avoid rebooting at end of installation
|
# Avoid rebooting at end of installation
|
||||||
sed -i "/reboot/d" /newinstaller.sh && \
|
sed -i "/reboot/d" /newinstaller.sh && \
|
||||||
# Use apt-get as without user action
|
# Use apt-get as without user action
|
||||||
sed -i "s|apt |apt-get |g" /newinstaller.sh
|
sed -i "s|apt |apt-get |g" /newinstaller.sh && \
|
||||||
|
\
|
||||||
USER abc
|
# Remove all instances of sudo from the newinstaller
|
||||||
WORKDIR /app
|
sed -i -e "s|== 0|== 7|g" -e "s|sudo -n true|true|g" -e "s|sudo -K|true|g" /newinstaller.sh && \
|
||||||
RUN export DEBIAN_FRONTEND noninteractive && \
|
# Remove all instances of sudo from all other scripts
|
||||||
export BIRDNET_USER="abc" && \
|
sed -i '1a for file in $(grep -srl "sudo" $HOME/BirdNET-Pi/scripts); do \sed -i "s|sudo ||" "$file"; done' /newinstaller.sh && \
|
||||||
export USER="abc" && \
|
\
|
||||||
export HOME="/app" && \
|
|
||||||
echo "HOME is $HOME" && \
|
|
||||||
ls -l /app && \
|
|
||||||
sudo chown -R abc:abc /app && \
|
|
||||||
/./newinstaller.sh
|
/./newinstaller.sh
|
||||||
USER root
|
|
||||||
|
|
||||||
|
#USER abc
|
||||||
|
#WORKDIR /app
|
||||||
|
#RUN export DEBIAN_FRONTEND noninteractive && \
|
||||||
|
# export BIRDNET_USER="abc" && \
|
||||||
|
# export USER="abc" && \
|
||||||
|
# export HOME="/app" && \
|
||||||
|
# echo "HOME is $HOME" && \
|
||||||
|
# ls -l /app && \
|
||||||
|
# sudo chown -R abc:abc /app && \
|
||||||
|
# /./newinstaller.sh
|
||||||
|
#USER root
|
||||||
#sudo -E -u birdnet -s /bin/bash -c "/newinstaller.sh"
|
#sudo -E -u birdnet -s /bin/bash -c "/newinstaller.sh"
|
||||||
# Correct script
|
# Correct script
|
||||||
#sed -i "s|== 0|== 7|g" /newinstaller.sh && \
|
#sed -i "s|== 0|== 7|g" /newinstaller.sh && \
|
||||||
|
|||||||
Reference in New Issue
Block a user