feat: KIAUH v4.0.0 #191

Merged
dw-0 merged 453 commits from v4-rc into master 2022-05-29 20:11:16 +02:00
Showing only changes of commit fb9e6807b7 - Show all commits

View File

@@ -80,8 +80,8 @@ function octoprint_setup(){
)
dependency_check "${dep[@]}"
### add user to usergroups and add reboot permissions
add_to_groups
### check for tty and dialout usergroups and add reboot permissions
check_usergroups
add_reboot_permission
### install octoprint
@@ -120,17 +120,6 @@ function install_octoprint(){
deactivate
}
add_to_groups(){
if [ ! "$(groups | grep tty)" ]; then
status_msg "Adding user '${USER}' to group 'tty' ..."
sudo usermod -a -G tty "${USER}" && ok_msg "Done!"
fi
if [ ! "$(groups | grep dialout)" ]; then
status_msg "Adding user '${USER}' to group 'dialout' ..."
sudo usermod -a -G dialout "${USER}" && ok_msg "Done!"
fi
}
function create_config_yaml(){
local base_dir=${1} tmp_printer=${2} restart_cmd=${3}