~nemh/systemback/stable

« back to all changes in this revision

Viewing changes to debian/systemback-scheduler.postrm

  • Committer: Kende Krisztián
  • Date: 2014-09-20 10:47:22 UTC
  • Revision ID: nemh@freemail.hu-20140920104722-0vprfl95v5nmmcqi
Replace all BASH scripts with POSIX compatible variants
Print systemback-cli version number without root privileges
Move version files to libsystemback

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash -e
 
1
#!/bin/sh -e
2
2
 
3
 
if [[ -d /run ]]
 
3
if [ -d /run ]
4
4
then pfile=/run/sbscheduler.pid
5
5
else pfile=/var/run/sbscheduler.pid
6
6
fi
7
7
 
8
 
if [[ $1 = upgrade && -s $pfile ]]
 
8
if [ "$1" = upgrade ] && [ -s $pfile ]
9
9
then printf restart > $pfile
10
10
fi
11
11
#DEBHELPER#
 
 
b'\\ No newline at end of file'