Pudding_LWGW_BR2/.drone/populate_overlay.sh
Yilin Sun 6e212566ac
Some checks failed
continuous-integration/drone/push Build is failing
ci: populate users.table, add openssl.
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-04-19 09:10:10 +08:00

13 lines
411 B
Bash
Executable File

#!/usr/bin/env bash
SOURCE_PATH=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )/../" &> /dev/null && pwd )
USERS_TABLE=${SOURCE_PATH}/external_tree/customizations/users.table
echo "Populating overlay directory..."
PASSWORD=$(openssl rand -hex 8)
echo "Generated default password for current build: ${PASSWORD}"
echo "imi415 1000 imi415 1000 =${PASSWORD} /home/imi415 /bin/bash wheel imi415" > ${USERS_TABLE}