Add info to some kickstart functions

This commit is contained in:
Bruno Tavares 2014-02-20 17:25:37 -03:00
parent e4f5031d32
commit ec1d130d07
3 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,7 @@ kickstart.download.file() {
}
kickstart.download.stream() {
kickstart.info "Downloading $1"
if [ `which curl` ]; then
curl $1
elif [ `which wget` ]; then

View File

@ -1,3 +1,4 @@
kickstart.group.create() {
kickstart.info "Creating group $1"
grep -q $1 /etc/group || groupadd $1
}

View File

@ -1,3 +1,4 @@
kickstart.user.add_group() {
kickstart.info "Adding $2 group to $1"
grep -q $2 <(groups $1) || usermod -a -G $2 $1
}