chmod for clone and force pull

This commit is contained in:
Marwolf
2018-07-14 21:47:28 -04:00
parent 2abd5db4d6
commit 8d268aa5f2

View File

@@ -293,6 +293,7 @@ if [ "$choice" == "1" ]; then
echo "You may now be prompted for your password so the installer has sudo access." echo "You may now be prompted for your password so the installer has sudo access."
echo "" echo ""
cd Game && sudo git reset HEAD --hard && sudo git pull cd Game && sudo git reset HEAD --hard && sudo git pull
sudo chmod -r 777 Game
cd .. cd ..
echo "" echo ""
echo "" echo ""
@@ -312,6 +313,7 @@ if [ "$choice" == "1" ]; then
echo "Fetching the Game from the Open RSC git repo." echo "Fetching the Game from the Open RSC git repo."
echo "" echo ""
sudo make clone-game sudo make clone-game
sudo chmod -r 777 Game
echo "" echo ""
echo "" echo ""
echo "Creating the client cache in your home folder." echo "Creating the client cache in your home folder."
@@ -341,9 +343,12 @@ elif [ "$choice" == "2" ]; then
echo "You may now be prompted for your password so the installer has sudo access." echo "You may now be prompted for your password so the installer has sudo access."
echo "" echo ""
cd Game && sudo git reset HEAD --hard && sudo git pull cd Game && sudo git reset HEAD --hard && sudo git pull
sudo chmod -r 777 Game
cd .. cd ..
echo "" echo ""
cd Website && sudo git reset HEAD --hard && sudo git pull cd Website && sudo git reset HEAD --hard && sudo git pull
sudo chmod -r 777 Website
sudo chmod -r 644 Website/board/config.php
cd .. cd ..
echo "" echo ""
echo "" echo ""
@@ -363,8 +368,11 @@ elif [ "$choice" == "2" ]; then
echo "Fetching the Website and Game from the Open RSC git repo." echo "Fetching the Website and Game from the Open RSC git repo."
echo "" echo ""
sudo make clone-game sudo make clone-game
sudo chmod -r 777 Game
echo "" echo ""
sudo make clone-website sudo make clone-website
sudo chmod -r 777 Website
sudo chmod -r 644 Website/board/config.php
echo "" echo ""
echo "" echo ""
echo "Creating the client cache in your home folder." echo "Creating the client cache in your home folder."
@@ -394,12 +402,16 @@ elif [ "$choice" == "3" ]; then
echo "You may now be prompted for your password so the installer has sudo access." echo "You may now be prompted for your password so the installer has sudo access."
echo "" echo ""
cd Game && git sudo reset HEAD --hard && sudo git pull cd Game && git sudo reset HEAD --hard && sudo git pull
sudo chmod -r 777 Game
cd .. cd ..
echo "" echo ""
cd Website && sudo git reset HEAD --hard && sudo git pull cd Website && sudo git reset HEAD --hard && sudo git pull
sudo chmod -r 777 Website
sudo chmod -r 644 Website/board/config.php
cd .. cd ..
echo "" echo ""
cd Website/Wiki && sudo git reset HEAD --hard && sudo git pull cd Website/Wiki && sudo git reset HEAD --hard && sudo git pull
sudo chmod -r 777 Website/Wiki
cd .. cd ..
echo "" echo ""
echo "" echo ""
@@ -419,10 +431,14 @@ elif [ "$choice" == "3" ]; then
echo "Fetching the Website, Game, and Wiki from the Open RSC git repo." echo "Fetching the Website, Game, and Wiki from the Open RSC git repo."
echo "" echo ""
sudo make clone-game sudo make clone-game
sudo chmod -r 777 Game
echo "" echo ""
sudo make clone-website sudo make clone-website
sudo chmod -r 777 Website
sudo chmod -r 644 Website/board/config.php
echo "" echo ""
sudo make clone-wiki sudo make clone-wiki
sudo chmod -r 777 Website/Wiki
echo "" echo ""
echo "" echo ""
echo "Extracting the Wiki database." echo "Extracting the Wiki database."