Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:infrastructure
container-heroes-salt-development-systemd
entrypoint.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File entrypoint.sh of Package container-heroes-salt-development-systemd
#!/bin/sh # Initialization script for the heroes-salt-development-systemd container # Forked from salt-dev # Author: Georg Pfuetzenreuter <mail+opensuse@georg-pfuetzenreuter.net> set -Ceu INIT="$1" CHECKFILE='/var/adm/firstboot-ok' if [ ! -f "$CHECKFILE" ] then echo "Preparing for first boot ..." SECRET_ROOT="${PASS_ROOT:=opensuse_root}" SECRET_GEEKO="${PASS_GEEKO:=opensuse_geeko}" SSH_KEY="${SSH_KEY:=null}" echo "Setting passphrases ..." echo "root:$SECRET_ROOT" | chpasswd echo "geeko:$SECRET_GEEKO" | chpasswd if [ "$SSH_KEY" != 'null' ] then echo "Injecting SSH key ..." for user in checker geeko do install -d -g "$user" -o "$user" "/home/$user/.ssh" echo "$SSH_KEY" > "/home/$user/.ssh/authorized_keys" done fi echo "Generating and printing SSH host key fingerprints ..." ssh-keygen -A find /etc/ssh/ -type f -name 'ssh_host_*_key.pub' -execdir ssh-keygen -lf {} \; echo "Refreshing repositories ..." zypper --gpg-auto-import-keys -nq ref touch "$CHECKFILE" fi echo "Executing init system ($INIT) ..." exec "$INIT"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor