Sha256: b45ce6710c864e29f378eb505188d0c4892cebb2e9645b683d1fcf279604584d

Contents?: true

Size: 555 Bytes

Versions: 4

Compression:

Stored size: 555 Bytes

Contents

#! /bin/sh -ex

target=`mktemp -d`
cd $target
cat > Gemfile <<GEMFILE
source "https://rubygems.org"
gem 'snapsync'
GEMFILE

bundler install --standalone --binstubs
if test -d /opt/snapsync; then
    sudo rm -rf /opt/snapsync
    sudo cp -r . /opt/snapsync
fi

if test -d /lib/systemd/system; then
    snapsync_gem=`bundler show snapsync`
    sudo cp $snapsync_gem/snapsync.service /lib/systemd/system
    ( sudo systemctl stop snapsync.service
      sudo systemctl enable snapsync.service
      sudo systemctl start snapsync.service )
fi

rm -rf $target

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
snapsync-0.3.0 install.sh
snapsync-0.2.1 install.sh
snapsync-0.2.0 install.sh
snapsync-0.1.8 install.sh