Добрый день. Пытаюсь на сервер с Debian 9.8 установить БГБиллинг. При установке двумя командами получается вот что:
Код:
curl -fsSL https://raw.githubusercontent.com/bgbilling/images-billing/7.2/install/install.sh -o bg_install.sh
root@debian:/home/fedorov# sh -eux bg_install.sh mysql jdk8 activemq wildfly bgbilling inet my nginx setlimits
+ echo Checking prerequisite utilities (nc,wget,curl,unzip,sed)
Checking prerequisite utilities (nc,wget,curl,unzip,sed)
+ which nc
+ [ -n /bin/nc ]
+ which wget
+ [ -n /usr/bin/wget ]
+ which curl
+ [ -n /usr/bin/curl ]
+ which unzip
+ [ -n /usr/bin/unzip ]
+ which sed
+ [ -n /bin/sed ]
+ cat /etc/os-release
+ grep -Eq \bDebian\b
+ echo Checking prerequisite utilities (dirmngr)
Checking prerequisite utilities (dirmngr)
+ which dirmngr
+ [ -n /usr/bin/dirmngr ]
+ VERSION=7.2
+ URL=https://raw.githubusercontent.com/bgbilling
+ URL_BASE=https://raw.githubusercontent.com/bgbilling/images-base/master/install
+ URL_BILLING=https://raw.githubusercontent.com/bgbilling/images-billing/7.2/install
+ echo mysql jdk8 activemq wildfly bgbilling inet my nginx setlimits
+ grep -Eq \bmariadb\b
+ echo mysql jdk8 activemq wildfly bgbilling inet my nginx setlimits
+ grep -Eq \bmysql\b
+ [ ! -d /var/lib/mysql ]
+ mkdir -p /tmp/bgb-install-script
+ curl -fsSL https://raw.githubusercontent.com/bgbilling/images-base/master/install/mysql/mysql.sh -o /tmp/bgb-install-script/mysql.sh
+ sh -eux /tmp/bgb-install-script/mysql.sh
+ URL=https://raw.githubusercontent.com/bgbilling
+ URL_BASE=https://raw.githubusercontent.com/bgbilling/images-base/master/install
+ echo Checking prerequisite utilities (curl,wget)
Checking prerequisite utilities (curl,wget)
+ which wget
+ [ -n /usr/bin/wget ]
+ which curl
+ [ -n /usr/bin/curl ]
+ [ ! -d /var/lib/mysql ]
+ echo Installing MySQL
Installing MySQL
+ mysql=mysql
+ cat /etc/os-release
+ grep -Eq \bDebian\b
+ echo Checking prerequisite utilities (dirmngr)
Checking prerequisite utilities (dirmngr)
+ which dirmngr
+ [ -n /usr/bin/dirmngr ]
+ export DEBIAN_FRONTEND=noninteractive
+ echo mysql-apt-config mysql-apt-config/select-server select mysql-5.7
+ debconf-set-selections
+ + echo mysql-server mysql-server/root-pass password ''
debconf-set-selections
+ + echo mysql-server mysql-server/re-root-pass password ''
debconf-set-selections
+ + debconf-set-selections
echo mysql-server mysql-server/data-dir select ''
+ curl -fsSL https://dev.mysql.com/get/mysql-apt-config_0.8.9-1_all.deb -o mysql-apt-config_0.8.9-1_all.deb
+ dpkg -i mysql-apt-config_0.8.9-1_all.deb
(Reading database ... 119822 files and directories currently installed.)
Preparing to unpack mysql-apt-config_0.8.9-1_all.deb ...
Unpacking mysql-apt-config (0.8.9-1) over (0.8.9-1) ...
Setting up mysql-apt-config (0.8.9-1) ...
Warning: apt-key should not be used in scripts (called from postinst maintainerscript of the package mysql-apt-config)
OK
+ sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 5072E1F5
/tmp/bgb-install-script/mysql.sh: 33: /tmp/bgb-install-script/mysql.sh: sudo: not found
root@debian:/home/
Как это вылечить? Замучался уже, честно говоря.