mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update INSTALL.sh
This commit is contained in:
parent
91e33ba0d0
commit
d7923ce63a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user