joininbox/scripts/update.joininbox.sh
2020-06-18 15:05:30 +01:00

14 lines
520 B
Bash
Executable file

#!/bin/bash
echo "Removing the joininbox directory.."
sudo rm -rf /home/joinmarket/joininbox
echo ""
echo "Cloning the latest state from https://github.com/openoms/joininbox"
echo ""
sudo -u joinmarket git clone https://github.com/openoms/joininbox.git
echo ""
echo "Copy the scripts in place"
echo ""
sudo -u joinmarket cp /home/joinmarket/joininbox/scripts/* /home/joinmarket/
sudo -u joinmarket cp /home/joinmarket/joininbox/scripts/.* /home/joinmarket/ 2>/dev/null
sudo -u joinmarket chmod +x /home/joinmarket/*.sh