aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-10-08 10:47:58 +0200
committerdec05eba <dec05eba@protonmail.com>2023-10-08 10:47:58 +0200
commit8d9797d897c3d70029d25c7486f818ce668c5323 (patch)
treecf9330f5ee98b6e6b0e70741f936da44635f6500
parent951706d32a3f44afed8f56244356cb18f594ba22 (diff)
Remove /usr/local.. from install/uninstall
-rwxr-xr-xinstall.sh2
-rwxr-xr-xuninstall.sh1
2 files changed, 1 insertions, 2 deletions
diff --git a/install.sh b/install.sh
index 66c3241..1ea57bf 100755
--- a/install.sh
+++ b/install.sh
@@ -8,7 +8,7 @@ cd "$script_dir"
./build.sh
strip gsr-kms-server
strip gpu-screen-recorder
-rm -f "/usr/local/bin/gpu-screen-recorder"
+
install -Dm755 "gsr-kms-server" "/usr/bin/gsr-kms-server"
install -Dm755 "gpu-screen-recorder" "/usr/bin/gpu-screen-recorder"
setcap cap_sys_admin+ep /usr/bin/gsr-kms-server
diff --git a/uninstall.sh b/uninstall.sh
index 95e26ac..6578baa 100755
--- a/uninstall.sh
+++ b/uninstall.sh
@@ -2,7 +2,6 @@
[ $(id -u) -ne 0 ] && echo "You need root privileges to run the uninstall script" && exit 1
-rm -f "/usr/local/bin/gpu-screen-recorder"
rm -f "/usr/bin/gsr-kms-server"
rm -f "/usr/bin/gpu-screen-recorder"