Sha256: f55aabb0af6cb5322ed195bef58dd2c7c1b5ab66ec0331c6a58d201f3c21c218

Contents?: true

Size: 581 Bytes

Versions: 11

Compression:

Stored size: 581 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
fi
sudo cp -r . /opt/snapsync
sudo chmod go+rX /opt/snapsync

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

11 entries across 11 versions & 1 rubygems

Version Path
snapsync-0.4.2 install.sh
snapsync-0.4.1 install.sh
snapsync-0.4.0 install.sh
snapsync-0.3.8 install.sh
snapsync-0.3.7 install.sh
snapsync-0.3.6 install.sh
snapsync-0.3.5 install.sh
snapsync-0.3.4 install.sh
snapsync-0.3.3 install.sh
snapsync-0.3.2 install.sh
snapsync-0.3.1 install.sh