aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/install-ubuntu-18.04.sh
diff options
context:
space:
mode:
authornhchiu <nhchiu2009@gmail.com>2019-10-11 19:52:45 +0800
committerKevinOConnor <kevin@koconnor.net>2019-10-23 14:54:31 -0400
commit9cd6273d52713cf804486181aabdc0e065da891b (patch)
tree7a38d6ac132349ef245d3bce7cf7f9cf11be89fa /scripts/install-ubuntu-18.04.sh
parentdd12c981efaca21942f73c01f479fee553314efa (diff)
downloadkutter-9cd6273d52713cf804486181aabdc0e065da891b.tar.gz
kutter-9cd6273d52713cf804486181aabdc0e065da891b.tar.xz
kutter-9cd6273d52713cf804486181aabdc0e065da891b.zip
scripts: Use current username in install-ubuntu-18.04.sh
Set KLIPPER_USER to $USER instead of "octoprint". Signed-off-by: Nathan Chiu <nhchiu2009@gmail.com>
Diffstat (limited to 'scripts/install-ubuntu-18.04.sh')
-rwxr-xr-xscripts/install-ubuntu-18.04.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/install-ubuntu-18.04.sh b/scripts/install-ubuntu-18.04.sh
index 4d2992be..9472fedb 100755
--- a/scripts/install-ubuntu-18.04.sh
+++ b/scripts/install-ubuntu-18.04.sh
@@ -1,10 +1,9 @@
#!/bin/bash
# This script installs Klipper on an Ubuntu 18.04 machine with Octoprint
-# Assumes the user running this is named "octoprint"
PYTHONDIR="${HOME}/klippy-env"
SYSTEMDDIR="/etc/systemd/system"
-KLIPPER_USER="octoprint"
+KLIPPER_USER=$USER
KLIPPER_GROUP=$KLIPPER_USER
# Step 1: Install system packages