mirror of
https://github.com/pygos/build.git
synced 2024-11-22 11:09:46 +01:00
b363b49a56
- 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>
27 lines
761 B
Text
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"
|
|
}
|