summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/appstore-add-app2
-rwxr-xr-xbin/appstore-init11
2 files changed, 11 insertions, 2 deletions
diff --git a/bin/appstore-add-app b/bin/appstore-add-app
index c190efb..2b9ed19 100755
--- a/bin/appstore-add-app
+++ b/bin/appstore-add-app
@@ -31,3 +31,5 @@ app conf set -f appstore.config ${name}.state "$5"
# Register the application
apps=$(app cat-conf -f appstore.config -k appstore.apps | cut -f 2- -d =)
app conf set -f appstore.config appstore.apps "$apps,$name"
+
+git add appstore.config
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