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

View File

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