Python3.11 (#172)

* ubuntu/fedora pin to python3.11 for now

* add dev pacakge
This commit is contained in:
paukstelis
2024-06-26 17:35:40 -04:00
committed by GitHub
parent e15493378c
commit 6af4e2b0e5
2 changed files with 11 additions and 5 deletions

View File

@@ -93,6 +93,8 @@ deb_packages() {
-e python3-venv \
-e python3.9-venv \
-e python3.10-venv \
-e python3.11-venv \
-e python3.11-dev \
-e virtualenv \
-e python3-dev \
-e build-essential \
@@ -272,6 +274,10 @@ new_install() {
PYVERSION="python3"
if [ $INSTALL -eq 2 ]; then
apt-get update > /dev/null
PYV=$(python3 -c"import sys; print(sys.version_info.minor)")
if [ $PYV -gt 11 ]; then
PYVERSION='python3.11'
fi
deb_packages
fi
@@ -286,9 +292,9 @@ new_install() {
fi
systemctl enable sshd.service
PYV=$(python3 -c"import sys; print(sys.version_info.minor)")
if [ $PYV -gt 10 ]; then
dnf -y install python3.10-devel
PYVERSION='python3.10'
if [ $PYV -gt 11 ]; then
dnf -y install python3.11-devel
PYVERSION='python3.11'
fi
dnf_packages
fi

View File

@@ -395,8 +395,8 @@ diagnostics() {
echo "**************************************" | log
systemctl status $instance -l --no-pager | log
#get needed config info
sudo -u $user $OCTOEXEC --basedir=/home/$user/.$INSTANCE config get plugins.classicwebcam.stream | log
sudo -u $user $OCTOEXEC --basedir=/home/$user/.$INSTANCE config get plugins.classicwebcam.snapshot | log
sudo -u $user $OCTOEXEC --basedir=/home/$user/.$INSTANCE config get plugins.classicwebcam | log
#sudo -u $user $OCTOEXEC --basedir=/home/$user/.$INSTANCE config get plugins.classicwebcam.snapshot | log
sudo -u $user $OCTOEXEC --basedir=/home/$user/.$INSTANCE config get webcam | log
done
#get all cam status