~jdstrand/ufw/trunk

« back to all changes in this revision

Viewing changes to snappy-packaging/bin/init

  • Committer: Jamie Strandboge
  • Date: 2016-12-26 19:43:56 UTC
  • mto: This revision was merged to the branch mainline in revision 968.
  • Revision ID: jamie@ubuntu.com-20161226194356-271jrb9db9jd0vl2
update to use snapcraft wholly:
- add snapcraft.yaml with make plugin
- adjust Makefile to take SNAP=yes arg for 'all' and 'install'
- remove snappy-packaging/
- add snap-files/bin/*

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
if [ -z "$SNAP" ]; then
4
 
    echo "SNAP not set"
5
 
    exit 1
6
 
fi
7
 
 
8
 
upgrade_path="$SNAP_DATA/.upgraded_${SNAP_VERSION}"
9
 
 
10
 
# ufw.srv will have already done this on install.
11
 
if [ ! -e "$upgrade_path" ]; then
12
 
    echo "Rules not found in '$SNAP_DATA'. Aborting"
13
 
    exit 1
14
 
fi
15
 
 
16
 
"$SNAP"/lib/ufw/ufw-init --rootdir "$SNAP" --datadir "$SNAP_DATA" "$@"