mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
Create uninstaller shell script
This commit is contained in:
parent
540a43b808
commit
9b2a9d00a8
@ -30,4 +30,13 @@ productbuild --distribution osx_installer/distribution.xml --resources osx_insta
|
||||
#sudo pkgutil --forget org.urbackup.client
|
||||
#sudo pkgutil --forget org.urbackup.client.frontend.pkg
|
||||
#sudo pkgutil --forget org.urbackup.client.frontend2.pkg
|
||||
#sudo rm -R "/Applications/UrBackup Client.app"
|
||||
#sudo rm -R "/Applications/UrBackup Client.app"
|
||||
|
||||
echo "#!/bin/sh" > uninstall2.sh
|
||||
|
||||
cd osx-pkg
|
||||
find . -type f -exec echo rm -fv /{} \; >> ../uninstall2.sh
|
||||
cd ..
|
||||
cd osx-pkg2
|
||||
find . -type f -exec echo rm -fv /{} \; >> ../uninstall2.sh
|
||||
cd ..
|
||||
16
osx_installer/uninstall1.sh
Normal file
16
osx_installer/uninstall1.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
if /bin/launchctl list "org.urbackup.client.backend" &> /dev/null; then
|
||||
/bin/launchctl stop "org.urbackup.client.backend"
|
||||
/bin/launchctl unload "/Library/LaunchDaemons/org.urbackup.client.plist"
|
||||
fi
|
||||
|
||||
if /bin/launchctl list "org.urbackup.client.frontend" &> /dev/null; then
|
||||
/bin/launchctl stop "org.urbackup.client.frontend"
|
||||
/bin/launchctl unload "/Library/LaunchAgents/org.urbackup.client.plist"
|
||||
fi
|
||||
|
||||
pkgutil --forget org.urbackup.client
|
||||
pkgutil --forget org.urbackup.client.frontend2.pkg
|
||||
|
||||
sh $PWD/uninstall2.sh
|
||||
Loading…
Reference in New Issue
Block a user