1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-22 11:09:46 +01:00
build/pkg/base-files/build
David Oberhollenzer b363b49a56 Add basic system files
- passwd and group files with entries for "root"
 - user directory for "root"
 - hosts and hostname files

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-01-30 14:02:09 +01:00

27 lines
761 B
Text

build() {
return
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
# home directory of root user
mkdir -p "$DEPLOY/usr/root"
chmod 750 "$DEPLOY/usr/root"
cp "$SCRIPTDIR/pkg/base-files/bash_profile" "$DEPLOY/usr/root/.bash_profile"
cp "$SCRIPTDIR/pkg/base-files/bashrc" "$DEPLOY/usr/root/.bashrc"
# /etc base files
mkdir -p "$DEPLOY/etc/skel"
cp "$SCRIPTDIR/pkg/base-files/bash_profile" "$DEPLOY/etc/skel/.bash_profile"
cp "$SCRIPTDIR/pkg/base-files/bashrc" "$DEPLOY/etc/skel/.bashrc"
cp "$SCRIPTDIR/pkg/base-files/hostname" "$DEPLOY/etc/hostname"
cp "$SCRIPTDIR/pkg/base-files/hosts" "$DEPLOY/etc/hosts"
cp "$SCRIPTDIR/pkg/base-files/passwd" "$DEPLOY/etc/passwd"
cp "$SCRIPTDIR/pkg/base-files/group" "$DEPLOY/etc/group"
}