From ec9fb9b242ddc712fe00b5f5ed5ba4babf61cd24 Mon Sep 17 00:00:00 2001 From: paukstelis Date: Wed, 24 Aug 2022 09:34:29 -0400 Subject: [PATCH] fix config copying for non-pi user --- octoprint_deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octoprint_deploy.sh b/octoprint_deploy.sh index 1ba3c9c..e100ddb 100755 --- a/octoprint_deploy.sh +++ b/octoprint_deploy.sh @@ -673,7 +673,7 @@ prepare () { echo "$user ALL=NOPASSWD: /usr/sbin/reboot" > /etc/sudoers.d/octoprint_reboot echo 'haproxy: true' >> /etc/octoprint_deploy echo 'Modifying config.yaml' - cp -p $SCRIPTDIR/config.basic /home/pi/.octoprint/config.yaml + cp -p $SCRIPTDIR/config.basic /home/$user/.octoprint/config.yaml firstrun echo 'Connect to your octoprint (octopi.local) instance and setup admin user if you have not already' echo 'type: octopi' >> /etc/octoprint_deploy