summaryrefslogtreecommitdiff
path: root/bin/appstore-init
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-11-12 13:39:41 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2013-11-12 13:39:41 +0100
commit5dd16e14dd41f1565687142ba7cefa7c4cf64658 (patch)
treed571b793928cdf89feb6d040b359c3db2a00c766 /bin/appstore-init
parent0d92ff5fd34d79b54c30c38ac41bc600acf7b7c4 (diff)
downloadappstore-master.tar.gz
appstore-master.tar.bz2
appstore-master.tar.xz
appstore-master.zip
Diffstat (limited to 'bin/appstore-init')
-rwxr-xr-xbin/appstore-init11
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/appstore-init b/bin/appstore-init
index 029391c..b721eee 100755
--- a/bin/appstore-init
+++ b/bin/appstore-init
@@ -19,9 +19,12 @@ then
fi
server=$1; shift
-repos=$1; shift
+root=$1; shift
name=$1; shift
+repos=$root/repos
+appstores=$root/appstores
+
if [ -e "$name" ]
then
echo "$name already exist!"
@@ -32,7 +35,11 @@ tmpfile=tmpfile$$
conffile=conffile$$
echo "Creating remote appstore..."
set +e
-ssh "$server" "$APPSTORE_HOME/libexec/appstore-init-server" "$repos" "$name" > "$tmpfile" 2>&1
+ssh "$server" \
+ "$APPSTORE_HOME/libexec/appstore-server-init" \
+ "$repos" \
+ "$appstores" \
+ "$name" > "$tmpfile" 2>&1
ret=$?
set -e