Skip to content

Commit

Permalink
update script updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Gilles committed Sep 25, 2016
1 parent caa80b2 commit b91507f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rpi-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ mkdir $TMP_HOOK_FOLDER
mkdir $TMP_CACHE_FOLDER

# We copy the hooks repository of the old folder
cp -r /home/pi/gladys/node_modules/gladys/api/hooks/* $TMP_HOOK_FOLDER
cp -ar /home/pi/gladys/node_modules/gladys/api/hooks/. $TMP_HOOK_FOLDER

# We copy the cache folder of the old gladys
cp -r /home/pi/gladys/node_modules/gladys/cache/* $TMP_CACHE_FOLDER
cp -ar /home/pi/gladys/node_modules/gladys/cache/. $TMP_CACHE_FOLDER

# stopping gladys (silent is in case gladys is not running)
# silent remove any errors cause by PM2
Expand All @@ -35,8 +35,8 @@ cd $GLADYS_TOP_FOLDER
npm update gladys

# we copy back the hook and cache folder
cp -r /tmp/gladys_hooks/* $HOOK_FOLDER
cp -r /tmp/gladys_cache/* $CACHE_FOLDER
cp -ar /tmp/gladys_hooks/. $HOOK_FOLDER
cp -ar /tmp/gladys_cache/. $CACHE_FOLDER

# start init script
node $INIT_SCRIPT
Expand Down

0 comments on commit b91507f

Please sign in to comment.