Skip to content

Commit

Permalink
Create Apache config "Alias" for Monero log access
Browse files Browse the repository at this point in the history
  • Loading branch information
shermand100 committed Apr 11, 2021
1 parent 4f8cee9 commit d1ec2fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions raspbian-pinodexmr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ sleep 3
echo -e "\e[32mAdd PiNode-XMR php settings\e[0m"
sleep 3
sudo mv /home/pinodexmr/PiNode-XMR/etc/php/7.3/apache2/php.ini /etc/php/7.3/apache2/ 2> >(tee -a debug.log >&2)
#Configure apache server for access to monero log file
sudo mv /home/pinodexmr/PiNode-XMR/etc/apache2/sites-enabled/000-default.conf /etc/apache2/sites-enabled/000-default.conf 2> >(tee -a debug.log >&2)
sudo chmod 777 /etc/apache2/sites-enabled/000-default.conf 2> >(tee -a debug.log >&2)
sudo chown root /etc/apache2/sites-enabled/000-default.conf 2> >(tee -a debug.log >&2)
sudo /etc/init.d/apache2 restart 2> >(tee -a debug.log >&2)

echo -e "\e[32mSuccess\e[0m"
Expand Down Expand Up @@ -183,9 +187,6 @@ USE_SINGLE_BUILDDIR=1 make 2> >(tee -a debug.log >&2)
cd
#Make dir .bitmonero to hold lmdb. Needs to be added before drive mounted to give mount point. Waiting for monerod to start fails mount.
mkdir .bitmonero 2> >(tee -a debug.log >&2)
#Create hard symbolic link for WebUI to access Monero log file
echo "Create hard symbolic link for WebUI to access Monero log file" >>debug.log
ln /home/pinodexmr/.bitmonero/bitmonero.log /var/www/html/bitmonero.log 2> >(tee -a debug.log >&2)

echo -e "\e[32mBuilding Monero Blockchain Explorer[0m"
echo -e "\e[32m*******************************************************\e[0m"
Expand Down
8 changes: 4 additions & 4 deletions update-pinodexmr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ git clone -b Raspbian-install --single-branch https://github.com/monero-ecosyste
sudo mv /home/pinodexmr/PiNode-XMR/etc/php/7.3/apache2/php.ini /etc/php/7.3/apache2/ 2> >(tee -a debug.log >&2)
sudo chmod 644 /etc/systemd/system/*.service 2> >(tee -a debug.log >&2)
sudo chown root /etc/systemd/system/*.service 2> >(tee -a debug.log >&2)
#Configure apache server for access to monero log file
sudo mv /home/pinodexmr/PiNode-XMR/etc/apache2/sites-enabled/000-default.conf /etc/apache2/sites-enabled/000-default.conf 2> >(tee -a debug.log >&2)
sudo chmod 777 /etc/apache2/sites-enabled/000-default.conf 2> >(tee -a debug.log >&2)
sudo chown root /etc/apache2/sites-enabled/000-default.conf 2> >(tee -a debug.log >&2)
sudo /etc/init.d/apache2 restart 2> >(tee -a debug.log >&2)
echo -e "\e[32mSuccess\e[0m"
sleep 3
Expand All @@ -145,10 +149,6 @@ git clone -b Raspbian-install --single-branch https://github.com/monero-ecosyste
sudo chmod 777 -R /var/www/html/ 2> >(tee -a debug.log >&2)
echo -e "\e[32mSuccess\e[0m"

#Create hard symbolic link for WebUI to access Monero log file
echo "Create hard symbolic link for WebUI to access Monero log file" >>debug.log
ln /home/pinodexmr/.bitmonero/bitmonero.log /var/www/html/bitmonero.log 2> >(tee -a debug.log >&2)

#Restore User Values
echo "Restore user variables" >>debug.log
echo -e "\e[32mRestoring your personal settings\e[0m"
Expand Down

0 comments on commit d1ec2fb

Please sign in to comment.