1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-07-01 07:20:12 +02: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

28 lines
761 B
Plaintext

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"
}