~privacy-squad/+junk/tor-middle-relay-snap

« back to all changes in this revision

Viewing changes to daemon

  • Committer: Chad MILLER
  • Date: 2018-03-11 07:36:20 UTC
  • Revision ID: chad@cornsilk.net-20180311073620-a85uwy8vuniapvpb
Fix typo and start with explicit shell in yaml

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh-
 
1
#!/bin/sh
2
2
 
3
3
set -eu
4
4
 
6
6
 
7
7
# Expect a new release at least every 8 months. If this package is older, then
8
8
# refuse to run.
9
 
if test $(date +%s -d "8 months ago") -gt $(date +%s -d "2018-03-04"); then
 
9
if test $(date +%s -d "8 months ago") -gt $(date +%s -d "2018-03-11"); then
10
10
        echo "This snap is too old to be allowed to run. Old software could damage the integrity of the Tor network. Please refresh."
11
11
        exit 1
12
12
fi