Skip to content

Commit 4f38df7

Browse files
committed
Make sure to only install user-fix if needed
1 parent 9dd296c commit 4f38df7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/80-install-user-fix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ export LC_ALL=C
66
source /common.sh
77
install_cleanup_trap
88

9+
# if we already have the user-fix installed, we don't need to do anything
10+
[ -f '/root/bin/user-fix' ] && exit 0
11+
912
# we need to install virtualenv-tools3, so let's get pip and that
1013
apt-get install -y python3-pip
1114
sudo -u pi pip3 install --user virtualenv-tools3
@@ -14,4 +17,4 @@ cp /files/user-fix /root/bin/user-fix
1417
chmod +x /root/bin/user-fix
1518

1619
cp /files/user-fix.service /etc/systemd/system/user-fix.service
17-
systemctl enable user-fix.service
20+
systemctl enable user-fix.service

0 commit comments

Comments
 (0)