JedimasterRDW / proxmox_motioneye_container

Install MotionEye in proxmox container
MIT License
13 stars 17 forks source link

The script terminates with an error #14

Open ipod86 opened 1 year ago

ipod86 commented 1 year ago
root@pve:~# bash -c "$(wget -qLO - https://raw.githubusercontent.com/JedimasterRDW/proxmox_motioneye_container/master/create_container.sh)"

More than one storage locations detected.
1) local-lvm                                                  2) tank

Which storage location would you like to use? 2
[INFO] Using 'tank' for storage location.
[INFO] Container ID is 108.
Updating LXC template list...
Downloading LXC template...
bash: line 85: TEMPLATES: bad array subscript
root@pve:~#
fredlamour commented 1 year ago

same issue there

MarkusDef commented 1 year ago

same

mleppanen commented 10 months ago

OSTYPE=debian OSVERSION=${OSTYPE}-10 mapfile -t TEMPLATES < <(pveam available -section system | sed -n "s/.*\($OSVERSION.*\)/\1/p" | sort -t - -k 2 -V) TEMPLATE="${TEMPLATES[-1]}"

There is no debian-10 template available anymore. That part should work if that one line is changed to OSVERSION=${OSTYPE}-12 Of course should make a fix that would not break in the future.

The problem is that the setup.sh also has some problems, need to dig into those.

mleppanen commented 10 months ago

Ok, so debian is not offering the EOL'd python2 any more, so the python packages are a problem now.

mleppanen commented 10 months ago

So, use the script to install debian 11 and follow from here on the LXC https://github.com/motioneye-project/motioneye/wiki/Install-on-Debian-11-%28Bullseye%29