File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed
Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -6,16 +6,17 @@ export LC_ALL=C
66source /common.sh
77install_cleanup_trap
88
9- # this is intentionally commented out because our user-fix script has
10- # to be changed compared the one already shipping with OctoPi
11- #[ -f '/root/bin/user-fix' ] && exit 0
9+ if [ -f '/root/bin/user-fix' ]; then
10+ # user-fix is already there, make sure that no reference to webcamd remains
11+ sed -i "/\/root\/bin\/webcamd/d" /root/bin/user-fix
12+ else
13+ # we need to install virtualenv-tools3, so let's get pip and that
14+ apt-get install -y python3-pip
15+ sudo -u pi pip3 install --user virtualenv-tools3
1216
13- # we need to install virtualenv-tools3, so let's get pip and that
14- apt-get install -y python3-pip
15- sudo -u pi pip3 install --user virtualenv-tools3
17+ cp /files/user-fix /root/bin/user-fix
18+ chmod +x /root/bin/user-fix
1619
17- cp /files/user-fix /root/bin/user-fix
18- chmod +x /root/bin/user-fix
19-
20- cp /files/user-fix.service /etc/systemd/system/user-fix.service
21- systemctl enable user-fix.service
20+ cp /files/user-fix.service /etc/systemd/system/user-fix.service
21+ systemctl enable user-fix.service
22+ fi
You can’t perform that action at this time.
0 commit comments