From 985c42a7d2fb63753f2d25f4de5484b0cd4f3b4a Mon Sep 17 00:00:00 2001 From: Konstantin Demin Date: Tue, 23 Jul 2024 22:43:52 +0300 Subject: [PATCH] fix (minor) inconsistences --- Dockerfile | 2 +- scripts/apt-install-angie-mod.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a7c96ef..867d100 100644 --- a/Dockerfile +++ b/Dockerfile @@ -162,7 +162,7 @@ RUN find /etc/angie/ -name .gitkeep -delete ; \ ## preseed builtin modules list RUN x='angie-builtin-modules.sh' ; \ "$x" ; \ - chmod a-x "$(which "$x")" + rm -fv "$(which "$x")" ## misc tools RUN apt-install.sh \ diff --git a/scripts/apt-install-angie-mod.sh b/scripts/apt-install-angie-mod.sh index 46f05d3..64a58e6 100755 --- a/scripts/apt-install-angie-mod.sh +++ b/scripts/apt-install-angie-mod.sh @@ -25,6 +25,12 @@ done [ -n "$p" ] || exit 0 +dirs='cache lib log' +for n in ${dirs} ; do + d="/run/angie/$n" + [ -d "$d" ] || install -d "$d" +done + apt-install.sh $p [ -d "$d" ] || install -d "$d"