mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-13 18:44:29 +05:00
Fixes
This commit is contained in:
@@ -128,15 +128,6 @@ print_error(){
|
||||
fi
|
||||
}
|
||||
|
||||
#pkg_check(){
|
||||
# #WIP
|
||||
# if [[ $(dpkg-query -f'${Status}' --show $PKG 2>/dev/null) = *\ installed ]]; then
|
||||
# echo "WIP"
|
||||
# else
|
||||
# sudo apt-get -y install $PKG 2>/dev/null
|
||||
# fi
|
||||
#}
|
||||
|
||||
build_fw(){
|
||||
if [ -d $KLIPPER_DIR ]; then
|
||||
cd $KLIPPER_DIR && make menuconfig
|
||||
|
||||
@@ -155,9 +155,10 @@ dwc2_reverse_proxy_dialog(){
|
||||
}
|
||||
|
||||
dwc2_reverse_proxy(){
|
||||
if ! [[ $(dpkg-query -f'${Status}' --show nginx 2>/dev/null) = *\ installed ]]; then
|
||||
sudo apt-get install nginx -y
|
||||
fi
|
||||
#check for dependencies
|
||||
dep=(avahi-daemon nginx)
|
||||
dependency_check
|
||||
#execute operations
|
||||
cat ${HOME}/kiauh/resources/dwc2_nginx.cfg > ${HOME}/kiauh/resources/dwc2
|
||||
sudo mv ${HOME}/kiauh/resources/dwc2 /etc/nginx/sites-available/dwc2
|
||||
if [ -e /etc/nginx/sites-enabled/default ]; then
|
||||
|
||||
@@ -3,10 +3,12 @@ mainsail_install_routine(){
|
||||
if [ -d $KLIPPER_DIR ]; then
|
||||
#check for dependencies
|
||||
dep=(wget curl unzip)
|
||||
dep_check
|
||||
dependency_check
|
||||
#execute operation
|
||||
#disable octoprint service if installed
|
||||
if systemctl is-enabled octoprint.service -q 2>/dev/null; then
|
||||
disable_octoprint_service
|
||||
fi
|
||||
disable_haproxy_lighttpd
|
||||
remove_haproxy_lighttpd
|
||||
install_moonraker
|
||||
|
||||
Reference in New Issue
Block a user