Package: orthanc
Version: 1.1.0+dfsg-1
Followup-For: Bug #829380

Attached find an example which needs more testing.

Karsten

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable-updates'), (500, 'unstable'), 
(500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 4.6.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages orthanc depends on:
ii  adduser                    3.115
ii  dcmtk                      3.6.1~20150924-5+b1
ii  libboost-filesystem1.58.0  1.58.0+dfsg-5.1
ii  libboost-locale1.58.0      1.58.0+dfsg-5.1
ii  libboost-regex1.58.0       1.58.0+dfsg-5.1
ii  libboost-system1.58.0      1.58.0+dfsg-5.1
ii  libboost-thread1.58.0      1.58.0+dfsg-5.1
ii  libc6                      2.22-11
ii  libcurl3                   7.47.0-1
ii  libdcmtk5                  3.6.1~20150924-5+b1
ii  libgcc1                    1:6.1.1-7
ii  libjpeg62-turbo            1:1.5.0-1
ii  libjsoncpp1                1.7.2-1
ii  liblua5.1-0                5.1.5-8
ii  libpng16-16                1.6.23-1
ii  libpugixml1v5              1.7-2
ii  libsqlite3-0               3.13.0-1
ii  libssl1.0.2                1.0.2h-1
ii  libstdc++6                 6.1.1-7
ii  libuuid1                   2.28-5
ii  zlib1g                     1:1.2.8.dfsg-2+b1

orthanc recommends no packages.

orthanc suggests no packages.

-- Configuration Files:
/etc/orthanc/orthanc.json changed [not included]
/etc/orthanc/worklists.json changed [not included]

-- no debconf information
#!/bin/sh

LOGDIR=/var/log/orthanc
LOGFILE=${LOGDIR}/upgrade.log
ARGS="--upgrade --trace --logfile=${LOGFILE} /etc/orthanc/"

echo "Stopping Orthanc server..."
sleep 1s
systemctl stop orthanc.service
sleep 2s

echo "Attempting database upgrade..."
/usr/sbin/Orthanc ${ARGS}
RESULT=$?

if [ ${RESULT} -ne 0 ] ; then
	echo "Upgrade failed, please check the log: ${LOGDIR}"
	read -p "Press <ENTER> to continue and see the log" TMP
	less ${LOGFILE}
	exit 1
fi

echo "Restarting Orthanc server..."
sleep 1s
systemctl start orthanc.service
systemctl status orthanc.service

echo ""
echo "Log: ${LOGFILE}"

Reply via email to