From fe81cb784e4e649f88b0431f64b286ca84bb30a7 Mon Sep 17 00:00:00 2001 From: mmk2410 Date: Sun, 22 Nov 2015 18:19:22 +0100 Subject: [PATCH] Update script --- update-scripts/1-0-0_1-1-0.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 update-scripts/1-0-0_1-1-0.sh diff --git a/update-scripts/1-0-0_1-1-0.sh b/update-scripts/1-0-0_1-1-0.sh new file mode 100755 index 0000000..23526d6 --- /dev/null +++ b/update-scripts/1-0-0_1-1-0.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# Script for updating Rangitaki 1.0.0 to 1.1.0 +# WARNING: Rangitaki 1.1.0 is for testing purposes only +echo "WARNING: You're about to install a testing version of Rangitaki." +read -r -p "Do you want to continue? (y/N) " answer +if [[ "$answer" == "y" || "$answer" == "Y" ]]; then + # Getting the up to date version + git clone https://github.com/mmk2410/rangitaki/ ./rbe-new + # Creating temporary directory + mkdir rbe-tmp + # Updating rcc + cp ./rcc/password.php ./rbe-tmp/ + rm -rf ./rcc + mv ./rbe-new/rcc ./ + rm ./rcc/password.php + mv ./rbe-tmp/password.php ./rcc/ + # Updating ressources + rm -rf ./res + mv ./rbe-new/res ./ + # Updating index.php + rm ./index.php + mv ./rbe-new/index.php ./ + # Updating themes + rm ./themes/material-light.css + mv ./rbe-new/themes/material-light.css ./themes + # cleaning up + rm -rf ./rbe-new + rm -rf ./rbe-tmp +fi