From 0632591996893fe136a1f2fe44d9b9f404f41f3e Mon Sep 17 00:00:00 2001 From: Harald Pfeiffer Date: Thu, 1 Nov 2018 13:30:58 +0100 Subject: Initial commit --- .environ-prep | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 .environ-prep (limited to '.environ-prep') diff --git a/.environ-prep b/.environ-prep new file mode 100755 index 0000000..33f9c1f --- /dev/null +++ b/.environ-prep @@ -0,0 +1,14 @@ +#!/bin/sh +apt -q update||exit 1 +apt -yqq dist-upgrade||exit 1 +apt -yq install ksh make sudo node-util shellcheck locales git >/dev/null 2>&1||exit 1 +sed -i 's/^#.*\(en-IE.UTF-8\)/\1/g' /etc/locale.gen||exit 1 +echo ": \"\${LANG:=en_IE.UTF-8}\"; export LANG">>/etc/profile.d/lang +locale-gen||exit 1 +cp -vpR fakeenv/* / +# whyever the docker container comes up with world writable stuff... +# "it doesn't work? SOLUTION CHMOD 777 DERP DURP" +# assumption 1: cp above was without "-p", and default umask might be 000 +# answer 1: seems the docker does not give a sheet about cp -p +for i in localfs/ fakeenv/ /;do chmod -R o-w "$i"etc/systemd/system;done +systemctl unmask systemd-timesyncd.service; systemctl disable systemd-timesyncd.service -- cgit v1.2.3