Add user to groups in install.sh
Closes #3 Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
parent
edeb50e517
commit
0d659e9bca
3 changed files with 22 additions and 2 deletions
BIN
system/.config/dconf/user
Normal file
BIN
system/.config/dconf/user
Normal file
Binary file not shown.
|
@ -83,6 +83,13 @@ function set_permission() {
|
|||
sudo chmod -R "${2}" "${3}"
|
||||
}
|
||||
|
||||
# Function to add a user to a group
|
||||
# USAGE add_to_group USER GROUP
|
||||
function add_to_group() {
|
||||
print_log "Add user ${YELLOW}${1}${RESET} to group ${YELLOW}${2}${RESET} "
|
||||
sudo gpasswd -a "${1}" "${2}" > /dev/null 2>&1
|
||||
}
|
||||
|
||||
# Function to enable a service
|
||||
# USAGE: enable_service SERVICE
|
||||
function enable_service() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue