script: read webui ports from nginx config, write them to kiauh.ini

This commit is contained in:
th33xitus
2021-09-27 22:52:52 +02:00
parent 2a46b00cda
commit fc4fe130cd
3 changed files with 31 additions and 0 deletions

View File

@@ -240,6 +240,9 @@ remove_dwc2(){
rm -rf $DWC2_DIR && ok_msg "Directory removed!"
fi
### remove dwc2_port from ~/.kiauh.ini
sed -i "/^dwc2_port=/d" $INI_FILE
CONFIRM_MSG=" DWC2-for-Klipper-Socket was successfully removed!"
}
@@ -273,6 +276,9 @@ remove_mainsail(){
rm -f $log
done
### remove mainsail_port from ~/.kiauh.ini
sed -i "/^mainsail_port=/d" $INI_FILE
CONFIRM_MSG="Mainsail successfully removed!"
}
@@ -303,6 +309,9 @@ remove_fluidd(){
rm -f $log
done
### remove fluidd_port from ~/.kiauh.ini
sed -i "/^fluidd_port=/d" $INI_FILE
CONFIRM_MSG="Fluidd successfully removed!"
}
@@ -345,6 +354,9 @@ remove_octoprint(){
done
fi
### remove octoprint_port from ~/.kiauh.ini
sed -i "/^octoprint_port=/d" $INI_FILE
CONFIRM_MSG=" OctoPrint successfully removed!"
}