NC: remove autostart from installed Version

This commit is contained in:
Daniel unbrot Pätzold
2026-05-05 08:35:00 +02:00
parent cc10fb5b48
commit b5462e4781
@@ -21,9 +21,14 @@ fi
#Remove Nextcloud from autostart anyway! Must be started by this script manually, because if it was started befor the ecrypted mount, #Remove Nextcloud from autostart anyway! Must be started by this script manually, because if it was started befor the ecrypted mount,
#it will never sync and always throw an error that the local dir is missing #it will never sync and always throw an error that the local dir is missing
if [ -f "$SUDO_HOME/.config/autostart/com.nextcloud.desktopclient.nextcloud.desktop" ]; then if [ -f "$HOME/.config/autostart/com.nextcloud.desktopclient.nextcloud.desktop" ]; then
echo "Remove Autostart Nextcloud" echo "Remove Autostart Nextcloud (old)"
rm $SUDO_HOME/.config/autostart/com.nextcloud.desktopclient.nextcloud.desktop rm $HOME/.config/autostart/com.nextcloud.desktopclient.nextcloud.desktop
fi
# Same for NCs nuild-in autostart
if [ -f "$HOME/.config/autostart/Nextcloud.desktop" ]; then
echo "Remove Autostart Nextcloud (from installed binary)"
rm $HOME/.config/autostart/Nextcloud.desktop
fi fi
NC_PID=$( pgrep -u $USER nextcloud ) NC_PID=$( pgrep -u $USER nextcloud )