shared upload fix

This commit is contained in:
paukstelis
2024-01-15 09:04:01 -05:00
parent 0cd3a54b96
commit 99bb76874c
2 changed files with 3 additions and 2 deletions

View File

@@ -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.

View File

@@ -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