~m-grant-prg/lixbackups/bionic

« back to all changes in this revision

Viewing changes to src/prg/bash/detbckshare.sh.in

  • Committer: Mark Grant
  • Date: 2021-07-05 12:49:52 UTC
  • mfrom: (70.1.2 bionic-trunk)
  • Revision ID: m.grant.prg@gmail.com-20210705124952-tqjks0zuk2qvknow
MergeĀ fromĀ bionic-trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
#########################################################################
10
10
#                                                                       #
11
11
# Script ID: detbckshare                                                #
12
 
# Author: Copyright (C) 2012-2019  Mark Grant                           #
 
12
# Author: Copyright (C) 2012-2019, 2021  Mark Grant                     #
13
13
#                                                                       #
14
14
# Released under the GPLv3 only.                                        #
15
15
# SPDX-License-Identifier: GPL-3.0                                      #
128
128
# 19/04/2019    MG      1.3.2   Replace obsolete backticks with $(cmd). #
129
129
# 09/08/2019    MG      1.3.3   Correct getopt CL for proper quoting.   #
130
130
# 11/10/2019    MG      1.3.4   Move script_exit() before it is used.   #
 
131
# 05/03/2021    MG      1.3.5   Prepend invocations of programs in this #
 
132
#                               package with sbindir to allow for       #
 
133
#                               parallel AutoTool and distro package    #
 
134
#                               installations.                          #
131
135
#                                                                       #
132
136
#########################################################################
133
137
 
135
139
# Init variables #
136
140
##################
137
141
readonly outputprefix="$(basename $0):"
138
 
readonly version=1.3.4                          # set version variable
 
142
readonly version=1.3.5                          # set version variable
139
143
readonly packageversion=@pkgversion@            # Version of the package
140
144
readonly etclocation=@sysconfdir@/lixbackups    # Path to etc directory
141
145
 
307
311
proc_config_file
308
312
 
309
313
# Exit if not mounted.
310
 
if [[ $(chkbckshare -bt) == FALSE ]]; then
 
314
if [[ $(@sbindir@/chkbckshare -bt) == FALSE ]]; then
311
315
        status=1
312
316
        output "Backup share not mounted. Script exit code: $status" 1 1
313
317
        script_exit $status