Skip to content

Commit 11e095c

Browse files
committed
switch order of chgrp and venv
1 parent e91fa7e commit 11e095c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2228,11 +2228,12 @@ sudorun "chown ${SYSUSERID}:cowrie ${COWRIEDIR}"
22282228
sudorun "chmod 0770 $COWRIEDIR"
22292229
cd ${COWRIEDIR} || exit
22302230
dlog "setting up virtual environment"
2231+
run 'sudo -u cowrie virtualenv --python=python3 cowrie-env'
22312232
run 'sudo chgrp -R cowrie /srv/cowrie'
22322233
run 'sudo chmod g+w /srv/cowrie/cowrie-env/lib'
2233-
run 'sudo -u cowrie virtualenv --python=python3 cowrie-env'
22342234
dlog "activating virtual environment"
22352235
run 'source cowrie-env/bin/activate'
2236+
22362237
if [ "$FAST" == "0" ]; then
22372238
dlog "installing cowrie dependencies: requirements.txt"
22382239
run 'sg cowrie -c "pip3 install --require-virtualenv --upgrade pip"'

0 commit comments

Comments
 (0)