summaryrefslogtreecommitdiff
path: root/bin/appstore-init
diff options
context:
space:
mode:
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