From fd9b7a03cf77919cc9e567f51197edb4349a569f Mon Sep 17 00:00:00 2001 From: fwastring Date: Sat, 13 Dec 2025 19:07:28 +0100 Subject: [PATCH] tog bort filer --- install.sh | 5 ----- uninstall.sh | 23 ----------------------- 2 files changed, 28 deletions(-) delete mode 100755 install.sh delete mode 100755 uninstall.sh diff --git a/install.sh b/install.sh deleted file mode 100755 index 4c8aff9..0000000 --- a/install.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -sudo cp /etc/nixos/hardware-configuration.nix ./$1/nixos - -sudo nixos-rebuild switch --flake "/home/fw/nix#$1" diff --git a/uninstall.sh b/uninstall.sh deleted file mode 100755 index acf6b2e..0000000 --- a/uninstall.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -x -systemctl stop k3s -systemctl disable k3s -systemctl daemon-reload -rm -f /etc/systemd/system/k3s.service -rm -f /usr/local/bin/k3s -if [ -L /usr/local/bin/kubectl ]; then - rm -f /usr/local/bin/kubectl -fi -if [ -L /usr/local/bin/crictl ]; then - rm -f /usr/local/bin/crictl -fi -if [ -e /sys/fs/cgroup/systemd/system.slice/k3s.service/cgroup.procs ]; then - kill -9 `cat /sys/fs/cgroup/systemd/system.slice/k3s.service/cgroup.procs` -fi -umount `cat /proc/self/mounts | awk '{print $2}' | grep '^/run/k3s'` -umount `cat /proc/self/mounts | awk '{print $2}' | grep '^/var/lib/rancher/k3s'` - -rm -rf /var/lib/rancher/k3s -rm -rf /etc/rancher/k3s - -rm -f /usr/local/bin/k3s-uninstall.sh