forked from pulsejet/memories
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jo Van Bulck <jo.vanbulck@cs.kuleuven.be>
- Loading branch information
1 parent
f0e5c80
commit 6337424
Showing
2 changed files
with
25 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
# Fail on error | ||
set -xe | ||
|
||
# Source directory | ||
src=`pwd` | ||
|
||
# Copy source files to temp | ||
rm -rf /tmp/memories | ||
mkdir -p /tmp/memories | ||
cp -R appinfo l10n img js lib templates COPYING README.md CHANGELOG.md exiftest* composer* /tmp/memories | ||
|
||
# Cleanup | ||
pushd /tmp | ||
rm -rf memories.tar.gz | ||
|
||
# Bundle app | ||
tar --no-same-owner -p -zcf memories.tar.gz memories/ | ||
rm -rf memories/ | ||
|
||
# Upload to server | ||
scp /tmp/memories.tar.gz nc:~/ | ||
ssh -t nc ~/server/scripts/install_memories.sh |