NC Desktop: Fix Comments

This commit is contained in:
Daniel Pätzold
2026-03-28 15:19:34 +01:00
parent 770745698c
commit 4503ad63b0
@@ -36,7 +36,8 @@ else
SETUP_NEEDED="1" SETUP_NEEDED="1"
fi fi
#Remove Nextcloud from autostart - if it was started befor the ecrypted mount, i will never sync and always throw an error that the local dir is missing #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
if [ -f "$SUDO_HOME/.config/autostart/com.nextcloud.desktopclient.nextcloud.desktop" ]; then if [ -f "$SUDO_HOME/.config/autostart/com.nextcloud.desktopclient.nextcloud.desktop" ]; then
echo "Remove Autostart Nextcloud" echo "Remove Autostart Nextcloud"
rm $SUDO_HOME/.config/autostart/com.nextcloud.desktopclient.nextcloud.desktop rm $SUDO_HOME/.config/autostart/com.nextcloud.desktopclient.nextcloud.desktop
@@ -48,7 +49,7 @@ fi
if [ $SETUP_NEEDED = "0" ]; then if [ $SETUP_NEEDED = "0" ]; then
echo "Nextcloud was already setup, skipping configure and starting Service" echo "Nextcloud was already setup, skipping configure and starting Service"
echo "If you want to reset, please delete the Folder [HOME]/.var/app/com.nextcloud.desktopclient.nextcloud manually." echo "If you want to reset, please delete the Folder [HOME]/.var/app/com.nextcloud.desktopclient.nextcloud manually."
echo "Command: rm -ri ~/.var/app/com.nextcloud.desktopclient.nextcloud/" echo "Command: rm -rif ~/.var/app/com.nextcloud.desktopclient.nextcloud/"
su -c "nohup ${BASECMD} 1>/dev/null 2>/dev/null &" $SUDO_USER su -c "nohup ${BASECMD} 1>/dev/null 2>/dev/null &" $SUDO_USER
exit $? exit $?
fi fi