fix config copying for non-pi user

This commit is contained in:
paukstelis
2022-08-24 09:34:29 -04:00
parent 5752649844
commit ec9fb9b242

View File

@@ -673,7 +673,7 @@ prepare () {
echo "$user ALL=NOPASSWD: /usr/sbin/reboot" > /etc/sudoers.d/octoprint_reboot echo "$user ALL=NOPASSWD: /usr/sbin/reboot" > /etc/sudoers.d/octoprint_reboot
echo 'haproxy: true' >> /etc/octoprint_deploy echo 'haproxy: true' >> /etc/octoprint_deploy
echo 'Modifying config.yaml' 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 firstrun
echo 'Connect to your octoprint (octopi.local) instance and setup admin user if you have not already' echo 'Connect to your octoprint (octopi.local) instance and setup admin user if you have not already'
echo 'type: octopi' >> /etc/octoprint_deploy echo 'type: octopi' >> /etc/octoprint_deploy