mirror of
https://github.com/duplicati/duplicati.git
synced 2025-11-28 19:40:25 +08:00
12 lines
No EOL
461 B
Bash
Executable file
12 lines
No EOL
461 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
if pgrep -x "duplicati-server"; then
|
|
RES=`osascript \
|
|
-e "set question to display dialog \"Duplicati server is currently running, you should quit before installing a new version\" with title \"Duplicati Server 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 |