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>
This commit is contained in:
nhchiu 2019-10-11 19:52:45 +08:00 committed by KevinOConnor
parent dd12c981ef
commit 9cd6273d52
1 changed files with 1 additions and 2 deletions

View File

@ -1,10 +1,9 @@
#!/bin/bash #!/bin/bash
# This script installs Klipper on an Ubuntu 18.04 machine with Octoprint # This script installs Klipper on an Ubuntu 18.04 machine with Octoprint
# Assumes the user running this is named "octoprint"
PYTHONDIR="${HOME}/klippy-env" PYTHONDIR="${HOME}/klippy-env"
SYSTEMDDIR="/etc/systemd/system" SYSTEMDDIR="/etc/systemd/system"
KLIPPER_USER="octoprint" KLIPPER_USER=$USER
KLIPPER_GROUP=$KLIPPER_USER KLIPPER_GROUP=$KLIPPER_USER
# Step 1: Install system packages # Step 1: Install system packages