Python3.11 (#172)
* ubuntu/fedora pin to python3.11 for now * add dev pacakge
This commit is contained in:
12
prepare.sh
12
prepare.sh
@@ -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
|
||||
|
||||
4
util.sh
4
util.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user