Little mixup fixup

* Basically lets setup universal password 'toor' for user 'root' and 'developer'
* why?: because /bin/su wants to fetch password that dosent exist and result is auth info issues where cmds dont get passed over for execution....
This commit is contained in:
Martin Valba 2024-07-02 18:19:04 +00:00
parent de41389d05
commit eb46fcc62c
2 changed files with 7 additions and 1 deletions

View File

@ -9,7 +9,7 @@ docker_run_essentials() {
msg_debug "DOCKER: Running essential commands"
# Update ldconfig cache
sudo docker exec --interactive --tty $1 su root -c "ldconfig"
sudo docker exec --interactive --tty $1 su root -c ldconfig
}
# Start the container

View File

@ -22,11 +22,17 @@ docker_base_container_sysedit() {
set +e
export UNI_PASSWORD=$(echo toor | openssl passwd -1 -stdin)
# Add developer user ( used to build pkg's without root
docker_run_cmd $DOCKER_BASE_CONTAINER_NAME "useradd developer -m -g wheel"
docker_copy_pkgmanager_conf $DOCKER_BASE_CONTAINER_NAME
# Give users passwd so su dosent whine about auth info issues
docker_run_cmd $DOCKER_BASE_CONTAINER_NAME "usermod --password $UNI_PASSWORD root"
docker_run_cmd $DOCKER_BASE_CONTAINER_NAME "usermod --password $UNI_PASSWORD developer"
# Perms fixes + ${PACKAGE_MANAGER} changes
docker_run_cmd $DOCKER_BASE_CONTAINER_NAME "bash -c /home/developer/$TOOL_MAIN_NAME/build/docker/developing/rootsys/developer.sh"