Skip to content

Commit

Permalink
Updating install scripts to simply download and unpack the folder. See
Browse files Browse the repository at this point in the history
  • Loading branch information
MKHenson committed Jun 20, 2016
1 parent e7985c9 commit ef648e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 18 deletions.
11 changes: 3 additions & 8 deletions install-script-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,9 @@ echo "Downloading latest version from github dev"
wget https://github.com/MKHenson/webinate-blacktip/archive/dev.zip
unzip -o "dev.zip"

# If directories are not present, then create them
if [ ! -d "resources" ]; then
mkdir resources
mkdir templates
fi

# Moves the server folder to the current directory
cp -r webinate-blacktip-dev/resources/* ./resources
cp -r webinate-blacktip-dev/templates/* ./templates
cp -r webinate-blacktip-dev/* ./

# Remove modepress temp folder
if [ -d "webinate-blacktip-dev" ]; then
Expand All @@ -29,6 +23,7 @@ fi
rm "dev.zip"

# All done
echo "Blacktip successfully installed :)"
echo "Blacktip $(version) successfully downloaded"
echo "Please run 'npm install' to complete installation"
exit
} # this ensures the entire script is downloaded #
14 changes: 4 additions & 10 deletions install-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,10 @@ echo "Downloading latest version from github $(version)"
wget https://github.com/MKHenson/webinate-blacktip/archive/v$(version).zip
unzip -o "v$(version).zip"

# If directories are not present, then create them
if [ ! -d "resources" ]; then
mkdir resources
mkdir templates
fi

# Moves the server folder to the current directory
cp -r webinate-blacktip-$(version)/resources/* ./resources
cp -r webinate-blacktip-$(version)/templates/* ./templates
cp -r webinate-blacktip-$(version)/* ./

# Remove modepress temp folder
# Remove temp folder
if [ -d "webinate-blacktip-$(version)" ]; then
rm webinate-blacktip-$(version) -R
fi
Expand All @@ -34,6 +27,7 @@ fi
rm "v$(version).zip"

# All done
echo "Blacktip $(version) successfully installed :)"
echo "Blacktip $(version) successfully downloaded"
echo "Please run 'npm install' to complete installation"
exit
} # this ensures the entire script is downloaded #

0 comments on commit ef648e0

Please sign in to comment.