mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-04 03:13:49 +00:00
29 lines
887 B
Bash
Executable File
29 lines
887 B
Bash
Executable File
#!/bin/bash
|
|
# Uploads repository to centralized location
|
|
# Make sure to have called ./createLocalBaseP2RepositoryLinux.sh before
|
|
# and make sure to have activated local-p2-admin target to check
|
|
# if everything went well
|
|
|
|
set -u
|
|
|
|
USER="trac"
|
|
SERVER="sapsailing.com"
|
|
REPO_HOME="/home/trac/p2-repositories"
|
|
|
|
DATE=`date +%s`
|
|
|
|
echo "Performing backup of old repository to $REPO_HOME/sailing.backup.$DATE..."
|
|
ssh $USER@$SERVER "cp -r $REPO_HOME/sailing $REPO_HOME/sailing.backup.$DATE"
|
|
|
|
echo "Removing old p2-repository"
|
|
ssh $USER@$SERVER "rm -rf $REPO_HOME/sailing"
|
|
|
|
echo "Uploading local repository to $REPO_HOME/sailing"
|
|
scp -r ../../com.sap.sailing.targetplatform.base/gen/p2 $USER@$SERVER:$REPO_HOME/sailing
|
|
|
|
echo "Remote files now available:"
|
|
ssh $USER@$SERVER "ls -lah $REPO_HOME/sailing"
|
|
|
|
echo ""
|
|
echo "Make SURE to notify developers that they need to update their target platform!!!"
|