Set perms and clean up code

This commit is contained in:
ShaYmez 2022-01-27 16:10:53 +00:00
parent a54af24ea5
commit 29da2b226d

17
hblink3-docker-install.sh Normal file → Executable file
View File

@ -26,10 +26,10 @@
# Step 4: Reboot after installation.
# This is a docker version and you can use the following comands to control / maintain your server
# cd /etc/hblink3
# ./start.sh
# ./stop.sh
# ./restart.sh
# ./update.sh
# docker-compose up -d (starts the hblink3 docker container)
# docker-compose down (shuts down the hblink container and stops the service)
# docker-compose pull (updates the container to the latest docker image)
# systemctl |stop|start|restart|status hbmon (controls the HBMonv2 dash service)
# logs can be found in var/log/hblink or docker comand "docker container logs hblink"
#Lets begin-------------------------------------------------------------------------------------------------
if [ "$EUID" -ne 0 ];
@ -105,7 +105,7 @@ sleep 2
echo Set userland-proxy to false...
echo '{ "userland-proxy": false}' > /etc/docker/daemon.json
fi
echo "Done"
echo "Done."
echo "------------------------------------------------------------------------------"
echo "Downloading and installing HBMonv2 Dashboard"
echo "------------------------------------------------------------------------------"
@ -127,7 +127,7 @@ then
echo "------------------------------------------------------------------------------"
exit 0
fi
echo "Done"
echo "Done."
echo ""
echo ""
echo "------------------------------------------------------------------------------"
@ -148,7 +148,7 @@ echo "--------------------------------------------------------------------------
sleep 2
cd /var/www/html/
mv /var/www/html/index.html /var/www/html/index_APACHE.html
cp -a /opt/HNMonv2/html/. /var/www/html/
cp -a /opt/HBMonv2/html/. /var/www/html/
if [ -e info.php ]
then
echo "------------------------------------------------------------------------------"
@ -583,10 +583,13 @@ figlet "HBlink Master"
sleep 3
docker container logs hblink
echo "Done."
sleep 2
echo "Starting HBmon....."
systemctl enable hbmon
systemctl start hbmon
figlet "HBMonV2
echo "Done."
sleep 2
echo ""
echo ""
echo "*************************************************************************"