Add info to some kickstart functions
This commit is contained in:
parent
e4f5031d32
commit
ec1d130d07
@ -3,6 +3,7 @@ kickstart.download.file() {
|
||||
}
|
||||
|
||||
kickstart.download.stream() {
|
||||
kickstart.info "Downloading $1"
|
||||
if [ `which curl` ]; then
|
||||
curl $1
|
||||
elif [ `which wget` ]; then
|
||||
|
@ -1,3 +1,4 @@
|
||||
kickstart.group.create() {
|
||||
kickstart.info "Creating group $1"
|
||||
grep -q $1 /etc/group || groupadd $1
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user