This repository was archived by the owner on Jun 23, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5151
5252# Массив с поддерживаемыми версиями операционной системы
5353suppOs=(" Debian 11" " Debian 12" " Ubuntu 22.04" " Ubuntu 24.04" )
54- repoExp=$( " * .list" " * .sources" )
54+ repoExp=( " jammy .list" " jammy.sources " " noble.list " " noble .sources" )
5555
5656# Получаем текущую версию операционной системы
5757disOs=$( lsb_release -si)
@@ -169,7 +169,7 @@ while true; do
169169
170170 # Проверяем наличие каждого файла
171171 for exp in " ${repoExp[@]} " ; do
172- if [ ! -f " /etc/apt/sources.list.d/ondrej-ubuntu-php-$exp " ]; then
172+ if [ -f " /etc/apt/sources.list.d/ondrej-ubuntu-php-$exp " ]; then
173173 foundExp=true
174174 fi
175175 done
@@ -214,7 +214,7 @@ while true; do
214214
215215 # Проверяем наличие каждого файла
216216 for exp in " ${repoExp[@]} " ; do
217- if [ ! -f " /etc/apt/sources.list.d/ondrej-ubuntu-nginx-$exp " ]; then
217+ if [ -f " /etc/apt/sources.list.d/ondrej-ubuntu-nginx-$exp " ]; then
218218 foundExp=true
219219 fi
220220 done
575575
576576 # Проверяем наличие каждого файла
577577 for exp in " ${repoExp[@]} " ; do
578- if [ ! -f " /etc/apt/sources.list.d/ondrej-ubuntu-nginx-$exp " ]; then
578+ if [ -f " /etc/apt/sources.list.d/ondrej-ubuntu-nginx-$exp " ]; then
579579 foundExp=true
580580 fi
581581 done
You can’t perform that action at this time.
0 commit comments