diff options
-rw-r--r-- | soas-sugar.ks | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/soas-sugar.ks b/soas-sugar.ks index ab57db7..4097c77 100644 --- a/soas-sugar.ks +++ b/soas-sugar.ks @@ -93,7 +93,7 @@ ASLO="$ASLO 4050" # Colors ASLO="$ASLO 4089" # Library WD=$PWD -BUNDLES_DIR=$INSTALL_ROOT/home/liveuser/Activities +BUNDLES_DIR=$INSTALL_ROOT/usr/share/sugar/bundles mkdir -p $BUNDLES_DIR cd $BUNDLES_DIR @@ -102,11 +102,6 @@ for id in $ASLO ; do curl -L http://activities.sugarlabs.org/en-US/sugar/downloads/latest/$id > $id.xo done -for file in *.xo ; do - unzip $file - rm $file -done - # pull sample content for the journal curl -O http://dev.sugarlabs.org/raw-attachment/ticket/840/south_america.pdf curl -O http://dev.sugarlabs.org/raw-attachment/ticket/840/africa.pdf @@ -211,8 +206,16 @@ vu.lux.olpc.Speak org.worldwideworkshop.olpc.JigsawPuzzle FOE +# unzip activities and clean up +cd /usr/share/sugar/bundles + +for file in *.xo ; do + unzip $file -d /home/liveuser/Activities + rm $file +done + + # execute sample content script and clean up afterwards -cd /home/liveuser/Activities chmod a+x copy-to-datastore.py su liveuser -c ./copy-to-datastore.py rm -f *.pdf |