Skip to content

Commit

Permalink
fix for ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
myleshorton committed Sep 30, 2015
1 parent d971998 commit 5a50d31
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion installer-resources/linux/lantern.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Lantern could probably use this LANTERN_WRAPPER env var in the future.
export LANTERN_WRAPPER=$(readlink -f "$0")

echo "Running installation script..."
LANTERN_WRAPPER_DIR=$(dirname "$LANTERN_WRAPPER")

# This is the original Lantern binary that came with the installer, it's
Expand Down Expand Up @@ -39,9 +40,12 @@ fi
if [ ! -f $LANTERN_USER_BINARY ]; then
# If there is no local copy, we use the original Lantern binary.
mkdir -p $LANTERN_USER_DIRECTORY/bin
echo "Copying files"
cp $LANTERN_SOURCE_BINARY $LANTERN_USER_BINARY
echo "Copying packaged yaml"
cp $LANTERN_SOURCE_YAML $LANTERN_USER_DIRECTORY
cp $LANTERN_CHAINED_YAML $LANTERN_USER_DIRECTORY
echo "Copying lantern.yaml"
cp $LANTERN_YAML $LANTERN_USER_DIRECTORY
sha1sum $LANTERN_SOURCE_BINARY > $LANTERN_SOURCE_BINARY_HASH
chmod +x $LANTERN_USER_BINARY
fi
Expand Down

0 comments on commit 5a50d31

Please sign in to comment.