-
Notifications
You must be signed in to change notification settings - Fork 13
/
xmr_update_binaries.sh
executable file
·36 lines (24 loc) · 839 Bytes
/
xmr_update_binaries.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
# Monero Update script
now=$(date +"%m_%d_%Y")
cd /home/bob/monero_files/
mkdir monero_$now
cd monero_$now
rm linux64*
wget https://downloads.getmonero.org/linux64
tar -xjvf linux64
# Copy binaries to /bin
#Restart service to use new binaries
export running=$(service mos_bitmonero status)
export mos_service="mos_bitmonero"
/home/bob/monerodo/service_off.sh
cd monero*
sudo cp monerod /bin
sudo cp monero-wallet-cli /bin
sudo cp monero-wallet-rpc /bin
sed -i -e "s/333.333.333.333/$current_ip/g" /home/bob/monerodo/conf_files/mos_bitmonero.conf
cp /home/bob/monerodo/conf_files/mos_bitmonero.conf /home/bob/.monerodo
sudo cp /home/bob/monerodo/conf_files/mos_bitmonero.conf /etc/init/
echo "You'll have to turn monero core on again in the settings menu. Press enter to continue"
read goback
cd /home/bob/monerodo/