From d8461432be7d31361249d799424d4e769d99fce0 Mon Sep 17 00:00:00 2001 From: mmk2410 Date: Mon, 7 Dec 2015 15:02:26 +0100 Subject: [PATCH] Update Script for 1.1.1 --- update-scripts/1-1-0_1-1-1.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 update-scripts/1-1-0_1-1-1.sh diff --git a/update-scripts/1-1-0_1-1-1.sh b/update-scripts/1-1-0_1-1-1.sh new file mode 100644 index 0000000..0a2de27 --- /dev/null +++ b/update-scripts/1-1-0_1-1-1.sh @@ -0,0 +1,35 @@ +#!/bin/bash +# Script for updating Rangitaki 1.1.0 to 1.1.1 +# WARNING: Rangitaki 1.1.1 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 + mkdir ./rbe-new + cd ./rbe-new || exit + wget -c https://github.com/mmk2410/Rangitaki/archive/v1.1.1.zip + unzip v1.1.1.zip + rm v1.1.1.zip + mv ./Rangitaki-1.1.1/* ./ + rm ./Rangitaki-1.1.1 + cd ../ || exit + # 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 ./ + # creating empty extension directory + mkdir ./extensions + # cleaning up + rm -rf ./rbe-new + rm -rf ./rbe-tmp +fi