Update INSTALL.sh

This commit is contained in:
Stefan Pejcic 2024-09-12 14:58:15 +02:00 committed by GitHub
parent 91e33ba0d0
commit d7923ce63a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1565,6 +1565,20 @@ install_openadmin(){
cp -fr /usr/local/admin/service/admin.service ${SERVICES_DIR}admin.service > /dev/null 2>&1 cp -fr /usr/local/admin/service/admin.service ${SERVICES_DIR}admin.service > /dev/null 2>&1
cp -fr /usr/local/admin/service/watcher.service ${SERVICES_DIR}watcher.service > /dev/null 2>&1 cp -fr /usr/local/admin/service/watcher.service ${SERVICES_DIR}watcher.service > /dev/null 2>&1
# temporary for 0.2.9
# Detect the package manager and install inotifywait-tools
if command -v apt-get &> /dev/null; then
sudo apt-get install -y -qq inotify-tools > /dev/null 2>&1
elif command -v yum &> /dev/null; then
sudo yum install -y -q inotify-tools > /dev/null 2>&1
elif command -v dnf &> /dev/null; then
sudo dnf install -y -q inotify-tools > /dev/null 2>&1
else
echo "Error: No compatible package manager found. Please install inotify-tools manually for DNS zone reload to work."
fi
systemctl daemon-reload > /dev/null 2>&1 systemctl daemon-reload > /dev/null 2>&1
service admin start > /dev/null 2>&1 service admin start > /dev/null 2>&1