mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
cmdeploy: make it work without bash
Co-authored-by: link2xt <link2xt@testrun.org>
This commit is contained in:
@@ -1,13 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [[ $(lsb_release -is 2> /dev/null) == "Ubuntu" || $(lsb_release -is 2> /dev/null) == "Debian" ]]
|
if command -v lsb_release 2>&1 >/dev/null; then
|
||||||
then
|
case "$(lsb_release -is)" in
|
||||||
if [ $(dpkg -l | grep python3-dev 2>&1 /dev/null) ]
|
Ubuntu | Debian )
|
||||||
then
|
if ! dpkg -l | grep python3-dev 2>&1 >/dev/null
|
||||||
echo "You need to install python3-dev for installing the other dependencies."
|
then
|
||||||
exit 1
|
echo "You need to install python3-dev for installing the other dependencies."
|
||||||
fi
|
exit 1
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
python3 -m venv --upgrade-deps venv
|
python3 -m venv --upgrade-deps venv
|
||||||
|
|||||||
Reference in New Issue
Block a user