Skip to content
Snippets Groups Projects
Commit 9e6ddf3b authored by efer's avatar efer
Browse files

stop/disable old launchagent

parent 51d458cc
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,7 @@ if [ $HOST_OS = 'Darwin' ]; then
NOTIFY1='osascript -e "display notification \"Backup did not complete\" with title \"DTU Compute backup script\""'
# Check for necessary programs
HOST_ARCH=$(uname -m)
echo "Checking for dependencies..."
echo -e "\nChecking for dependencies..."
for prog in rclone age; do
which $prog &>/dev/null
if [ $? -ne 0 ]; then
......@@ -116,7 +116,7 @@ elif [ $HOST_OS = 'Linux' ]; then
PKGMAN="dnf"
fi
# Check for necessary programs
echo "Checking for dependencies..."
echo -e "\nChecking for dependencies..."
for prog in rclone age; do
which $prog &>/dev/null
if [ $? -ne 0 ] ; then
......@@ -316,7 +316,8 @@ if [ $HOST_OS = 'Darwin' ]; then
mv $H/Library/$SCRIPTNAME-$RUSER $FILE_DIR/old/filter
fi
if [ -f $UNIT_DIR/com.dtucompute.backup.plist ]; then
launchctl bootout gui/$(id -u) $UNIT_DIR/com.dtucompute.backup.plist
launchctl stop com.dtucompute.backup
launchctl unload $UNIT_DIR/com.dtucompute.backup.plist
mv $UNIT_DIR/com.dtucompute.backup.plist $FILE_DIR/old/
fi
elif [ $HOST_OS = 'Linux' ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment