Changed the type of checking the /var/www/enginegp directory before installing the panel

It was: Checked for the presence of a directory
Become: Checks if the directory is empty
This commit is contained in:
Sergei Solovev 2024-03-10 00:30:31 +03:00
parent 8cb72c3719
commit a6b5662fd0

View File

@ -538,7 +538,7 @@ EOF
fi
# Установка EngineGP
if [ ! -d "/var/www/enginegp" ]; then
if [ "$(ls -A /var/www/enginegp)" ]; then
echo "===================================" >> $logsINST 2>&1
echo "enginegp не установлен. Выполняется установка..." | tee -a $logsINST
echo "===================================" >> $logsINST 2>&1