-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0748e7d
commit 071a9f5
Showing
4 changed files
with
62 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#!/bin/bash | ||
set -x | ||
|
||
DIR="survloop.org" | ||
SUPUSER="survuser" | ||
PCKGA="rockhopsoft" | ||
PCKGB="survlooporg" | ||
|
||
if [ $# -eq 1 ]; then | ||
DIR="$DIR-production" | ||
fi | ||
|
||
bash /home/$SUPUSER/survloop/deploy-update-dirs.sh | ||
|
||
set +x | ||
|
||
if [ -d /home/$SUPUSER/staging/rockhopsoft/survloop/src ]; then | ||
rm -R /home/$SUPUSER/staging/rockhopsoft/survloop/src | ||
fi | ||
if [ -d /home/$SUPUSER/staging/rockhopsoft/survloop-libraries/src ]; then | ||
rm -R /home/$SUPUSER/staging/rockhopsoft/survloop-libraries/src | ||
fi | ||
if [ -d /home/$SUPUSER/staging/$PCKGA/$PCKGB/src ]; then | ||
rm -R /home/$SUPUSER/staging/$PCKGA/$PCKGB/src | ||
fi | ||
|
||
if [ -f /home/$SUPUSER/staging/rockhopsoft/survloop/survloop.tar.gz ]; then | ||
rm -R /home/$SUPUSER/staging/rockhopsoft/survloop/src | ||
fi | ||
if [ -f /home/$SUPUSER/staging/rockhopsoft/survloop-libraries/survloop-libraries.tar.gz ]; then | ||
rm -R /home/$SUPUSER/staging/rockhopsoft/survloop-libraries/src | ||
fi | ||
if [ -f /home/$SUPUSER/staging/$PCKGA/$PCKGB/$PCKGB.tar.gz ]; then | ||
rm -R /home/$SUPUSER/staging/$PCKGA/$PCKGB/$PCKGB.tar.gz | ||
fi | ||
|
||
echo '--' | ||
echo '----' | ||
echo '----------' | ||
echo '---------------------' | ||
echo "In another terminal tab, browse to your local directory which stored tarred repository src folders. Then connect via SFTP and upload these:" | ||
echo "" | ||
echo "put survloop.tar.gz /home/$SUPUSER/staging/rockhopsoft/survloop/survloop.tar.gz" | ||
echo "" | ||
echo "put survloop-libraries.tar.gz /home/$SUPUSER/staging/rockhopsoft/survloop-libraries/survloop-libraries.tar.gz" | ||
echo "" | ||
echo "put $PCKGB.tar.gz /home/$SUPUSER/staging/$PCKGA/$PCKGB/$PCKGB.tar.gz" | ||
echo "" | ||
echo "" | ||
read -p $'Have you uploaded with SFTP?\n("y" or "n") \n' DONE | ||
|
||
tar -C /home/$SUPUSER/staging/rockhopsoft/survloop/ -xz /home/$SUPUSER/staging/rockhopsoft/survloop/survloop.tar.gz --warning=none | ||
tar -C /home/$SUPUSER/staging/rockhopsoft/survloop-libraries/ -xz /home/$SUPUSER/staging/rockhopsoft/survloop/survloop-libraries.tar.gz --warning=none | ||
tar -C /home/$SUPUSER/staging/$PCKGA/$PCKGB/ -xz /home/$SUPUSER/staging/$PCKGA/$PCKGB/$PCKGB.tar.gz --warning=none | ||
|
||
bash /home/$SUPUSER/survloop/deploy-update-core.sh $DIR | ||
|
||
cd /home/$SUPUSER/survloop |