FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit d3c8ab49 authored by Dr Adam Thorn's avatar Dr Adam Thorn
Browse files

replace deprecated tempfile call with mktemp

tempfile is a debian-ism and jammy warns us that use is deprecated.
mktemp has been available on all our debian/ubuntu machines for a long time
via coreutils (e.g. it was definitely in wheezy and trusty, and I'm pretty
sure since before then too)
parent d2a7ea19
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,6 @@ Priority: optional
Section: otherosfs
Maintainer: Chemistry COs <support@ch.cam.ac.uk>
Architecture: all
Version: 0.9-ch99
Version: 0.9-ch100
Depends: zfs-dkms, postgresql-13 | postgresql-9.5 | postgresql-9.4 , liblockfile-simple-perl, libdbi-perl, libjson-perl, libzfs-perl-chem, libnet-openssh-perl, libdbd-pg-perl, mbuffer, rsync, nfs-kernel-server, pv, libwww-curl-perl, libformat-human-bytes-perl
Description: a backup system using ZFS (repository 'backup-scheduler')
......@@ -25,9 +25,9 @@ if $SSH root@$SERVER [ /var/lib/dpkg/status -nt /var/adm/backup/package-files ]
set -e
set -o pipefail
umask 077
FILELIST=\`tempfile\`
CONFLIST=\`tempfile\`
DIFFLIST=\'tempfile\'
FILELIST=\`mktemp\`
CONFLIST=\`mktemp\`
DIFFLIST=\'mktemp\'
mkdir -p /var/adm/backup
# Which packages are installed?
dpkg --get-selections | awk ' { print \$1 ; } ' >/var/adm/backup/packages
......
......@@ -27,8 +27,8 @@ if $SSH root@$SERVER [ /var/lib/dpkg/status -nt /var/adm/backup/package-files ]
# Need to rebuild package-files
$SSH root@$SERVER "
umask 077
FILELIST=\`tempfile\`
CONFLIST=\`tempfile\`
FILELIST=\`mktemp\`
CONFLIST=\`mktemp\`
mkdir -p /var/adm/backup
# Make logrotate use datestamps
if ! grep -q dateext /etc/logrotate.conf ; then sed -i 's/^include/dateext\ninclude/' /etc/logrotate.conf ; fi
......
......@@ -27,8 +27,8 @@ if $SSH root@$SERVER [ /var/lib/dpkg/status -nt /var/adm/backup/package-files ]
# Need to rebuild package-files
$SSH root@$SERVER "
umask 077
FILELIST=\`tempfile\`
CONFLIST=\`tempfile\`
FILELIST=\`mktemp\`
CONFLIST=\`mktemp\`
mkdir -p /var/adm/backup
# Make logrotate use datestamps
if ! grep -q dateext /etc/logrotate.conf ; then sed -i 's/^include/dateext\ninclude/' /etc/logrotate.conf ; fi
......
......@@ -17,8 +17,8 @@ if $SSH root@$SERVER [ /var/lib/dpkg/status -nt /var/adm/backup/package-files ]
# Need to rebuild package-files
$SSH root@$SERVER "
umask 077
FILELIST=\`tempfile\`
CONFLIST=\`tempfile\`
FILELIST=\`mktemp\`
CONFLIST=\`mktemp\`
mkdir -p /var/adm/backup
# Make logrotate use datestamps
if ! grep -q dateext /etc/logrotate.conf ; then sed -i 's/^include/dateext\ninclude/' /etc/logrotate.conf ; fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment