diff --git a/README.md b/README.md index da13469..a56f0db 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -Updated July 20, 2023. +Updated January 15, 2024. Want to support this work? Buy Me a Coffee. https://www.buymeacoffee.com/ppaukstelis. Need help with octoprint_deploy? Ask on Discord: https://discord.gg/6vgSjgvR6u @@ -62,6 +62,7 @@ Need help with octoprint_deploy? Ask on Discord: https://discord.gg/6vgSjgvR6u * Restart all instances from the command line: `sudo octoprint_deploy/octoprint_deploy.sh restart_all` * You can inject any function at start using the command line with the first argument `f` and the second argument the function name. # Recent Changes + * Fixes for shared uploads function. * Command-line function injection. Will be useful in some cases. * Allow first instance creation without udev rule * Fixed dialout permissions. diff --git a/util.sh b/util.sh index 9a33cbc..04d12b3 100644 --- a/util.sh +++ b/util.sh @@ -175,7 +175,7 @@ share_uploads() { unset 'INSTANCE_ARR[-1]' unset 'INSTANCE_ARR[-1]' for instance in "${INSTANCE_ARR[@]}"; do - $OCTOEXEC --basedir /home/$user/.$instance config set folder.uploads "$opt" + sudo -u $user $OCTOEXEC --basedir /home/$user/.$instance config set folder.uploads "$opt" done break done