mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-19 07:11:50 +02:00
Update 01-structure.sh
This commit is contained in:
@@ -3,11 +3,11 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Save a copy of the script for further restarts
|
# Save a copy of the script for further restarts
|
||||||
if [ -f /etc/cont-init.d/99-run.sh ]; then
|
if [ -f /etc/cont-init.d/01-structure.sh ]; then
|
||||||
mkdir -p /etc/scripts-init
|
mkdir -p /etc/scripts-init
|
||||||
sed -i "s|/etc/cont-init.d|/etc/scripts-init|g" /ha_entrypoint.sh
|
sed -i "s|/etc/cont-init.d|/etc/scripts-init|g" /ha_entrypoint.sh
|
||||||
sed -i "/ rm/d" /ha_entrypoint.sh
|
sed -i "/ rm/d" /ha_entrypoint.sh
|
||||||
cp /etc/cont-init.d/99-run.sh /etc/scripts-init/
|
cp /etc/cont-init.d/01-structure.sh /etc/scripts-init/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
###############
|
###############
|
||||||
|
|||||||
Reference in New Issue
Block a user