Commit 86a6fa92 authored by Natanael Copa's avatar Natanael Copa
Browse files

scripts/ make sure root login is disabled

parent ac546c49
...@@ -39,6 +39,9 @@ ${APK:-apk} fetch --keys-dir "$keys_dir" --no-cache \ ...@@ -39,6 +39,9 @@ ${APK:-apk} fetch --keys-dir "$keys_dir" --no-cache \
--repositories-file "$repositories_file" \ --repositories-file "$repositories_file" \
--stdout --quiet alpine-base | tar -zx -C "$tmp" etc/ --stdout --quiet alpine-base | tar -zx -C "$tmp" etc/
# make sure root login is disabled
sed -i -e 's/^root::/root:!:/' "$tmp"/etc/shadow
branch=edge branch=edge
VERSION_ID=$(awk -F= '$1=="VERSION_ID" {print $2}' "$tmp"/etc/os-release) VERSION_ID=$(awk -F= '$1=="VERSION_ID" {print $2}' "$tmp"/etc/os-release)
case $VERSION_ID in case $VERSION_ID in
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment