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"