This repository has been archived on 2022-02-10. You can view files and clone it, but cannot push or open issues or pull requests.
rangitaki/update-scripts/1-0-0_1-1-0.sh

37 lines
1.1 KiB
Bash
Raw Permalink Normal View History

2015-11-22 18:19:22 +01:00
#!/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
2015-11-22 18:31:14 +01:00
mkdir ./rbe-new
cd ./rbe-new || exit
wget -c https://github.com/mmk2410/Rangitaki/archive/v1.1.0.zip
unzip v1.1.0.zip
rm v1.1.0.zip
2015-12-07 15:56:55 +01:00
mv ./rangitaki-1.1.0/* ./
rm ./rangitaki-1.1.0
2015-11-22 18:31:14 +01:00
cd ../ || exit
2015-11-22 18:19:22 +01:00
# 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