summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authortonyfettes2020-08-08 09:55:21 +0800
committertonyfettes2020-08-08 09:55:21 +0800
commit5a3fd0bdb3fe15c55d3153565f2d0080839adac3 (patch)
tree44ceda17f924366e426695d992722b5196a58d38
parent9cbd1836e7af90359dd25a8d28dacb4c84fa9367 (diff)
downloadaur-5a3fd0bdb3fe15c55d3153565f2d0080839adac3.tar.gz
Update pip & modules before update.
-rw-r--r--argonone.install6
1 files changed, 6 insertions, 0 deletions
diff --git a/argonone.install b/argonone.install
index b0daeea3b447..cb00dbff714a 100644
--- a/argonone.install
+++ b/argonone.install
@@ -40,6 +40,12 @@ post_install() {
echo " sudo systemctl enable argononed.service"
}
+pre_upgrade() {
+ echo "Updating pip packages..."
+ /opt/argonone/bin/python3 -m pip install --upgrade pip pysmbus RPi.GPIO
+ echo "Update completed."
+}
+
pre_remove() {
systemctl stop argononed.service
}