Files
duplicati/Installer/OSX/app-scripts/preinstall
T
Kenneth Skovhede e5fdf142de Fixed the OSX launch system to also support Homebrew mono.
Fixed the build system to build a dmg from a zip file.
Added pkg installer that checks for a running instance and optionally installs a LaunchAgent to start Duplicati on login.
2016-04-20 21:23:07 +02:00

12 lines
441 B
Bash
Executable File

#!/bin/bash
set -e
if pgrep -x "Duplicati"; then
RES=`osascript \
-e "set question to display dialog \"Duplicati is currently running, you should quite before installing a new version\" with title \"Duplicati is already running\" buttons {\"Stop installation\", \"Continue\"} default button 1" \
-e "if button returned of question is equal to \"Stop installation\" then return \"STOP\""`
if [ "$RES" == "STOP" ];
then
exit 1
fi
fi