Skip to content

Commit 1a6f5df

Browse files
author
Ivan Zoratti
committed
sudo added to pip3 preinst
1 parent 9b59d01 commit 1a6f5df

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

packages/Debian/common/DEBIAN/preinst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,18 @@ exists_schema_change_path () {
6868

6969
install_pip3_packages() {
7070

71-
pip3 install --upgrade pip
72-
pip3 install psycopg2
73-
pip3 install aiohttp
74-
pip3 install aiohttp_cors
75-
pip3 install chardet
76-
pip3 install requests
77-
pip3 install pyjwt
78-
pip3 install pyparsing
79-
pip3 install aiocoap
80-
pip3 install cbor2
81-
pip3 install pexpect
82-
pip3 install pyjq
71+
sudo pip3 install --upgrade pip
72+
sudo pip3 install psycopg2
73+
sudo pip3 install aiohttp
74+
sudo pip3 install aiohttp_cors
75+
sudo pip3 install chardet
76+
sudo pip3 install requests
77+
sudo pip3 install pyjwt
78+
sudo pip3 install pyparsing
79+
sudo pip3 install aiocoap
80+
sudo pip3 install cbor2
81+
sudo pip3 install pexpect
82+
sudo pip3 install pyjq
8383

8484
}
8585

@@ -112,10 +112,10 @@ then
112112
exit 1
113113
fi
114114

115-
install_pip3_packages
116-
117115
else
118116
echo "FogLAMP is not installed"
119117
fi
120118

119+
install_pip3_packages
120+
121121
echo "preinst complete"

packages/Debian/x86_64/DEBIAN/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Version: 0.0
33
Section: devel
44
Priority: optional
55
Architecture: amd64
6-
Depends: postgresql,postgresql-server-dev-9.6,libpq-dev,autoconf,libtool,jq,libboost-dev,libboost-system-dev,libboost-thread-dev,sqlite3,python-setuptools,python3-pip
6+
Depends: postgresql,libpq-dev,autoconf,libtool,jq,libboost-dev,libboost-system-dev,libboost-thread-dev,sqlite3,python-setuptools,python3-pip
77
Conflicts:
88
Maintainer: Dianomic Systems, Inc. <[email protected]>
99
Homepage: http://www.dianomic.com

0 commit comments

Comments
 (0)