Disable background synchronisation
This commit is contained in:
+20
-20
@@ -200,27 +200,27 @@ chmod +x "$WRAPPER_SCRIPT"
|
||||
|
||||
|
||||
### ✅ Create systemd service and timer
|
||||
cat > "$HOME/.config/systemd/user/darktable-sync.service" <<EOF
|
||||
[Unit]
|
||||
Description=Darktable Sync
|
||||
# cat > "$HOME/.config/systemd/user/darktable-sync.service" <<EOF
|
||||
# [Unit]
|
||||
# Description=Darktable Sync
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=$SYNC_SCRIPT
|
||||
EOF
|
||||
# [Service]
|
||||
# Type=oneshot
|
||||
# ExecStart=$SYNC_SCRIPT
|
||||
# EOF
|
||||
|
||||
cat > "$HOME/.config/systemd/user/darktable-sync.timer" <<EOF
|
||||
[Unit]
|
||||
Description=Run Darktable sync every 5 minutes
|
||||
# cat > "$HOME/.config/systemd/user/darktable-sync.timer" <<EOF
|
||||
# [Unit]
|
||||
# Description=Run Darktable sync every 5 minutes
|
||||
|
||||
[Timer]
|
||||
OnBootSec=2min
|
||||
OnUnitActiveSec=5min
|
||||
Unit=darktable-sync.service
|
||||
# [Timer]
|
||||
# OnBootSec=2min
|
||||
# OnUnitActiveSec=5min
|
||||
# Unit=darktable-sync.service
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
EOF
|
||||
# [Install]
|
||||
# WantedBy=default.target
|
||||
# EOF
|
||||
|
||||
### ✅ Create desktop shortcut
|
||||
cat > "$DESKTOP_SHORTCUT" <<EOF
|
||||
@@ -254,12 +254,12 @@ chmod +x "$SYNC_ONLY_SHORTCUT"
|
||||
|
||||
|
||||
### ▶️ Enable systemd timer
|
||||
systemctl --user daemon-reexec
|
||||
systemctl --user enable --now darktable-sync.timer
|
||||
# systemctl --user daemon-reexec
|
||||
# systemctl --user enable --now darktable-sync.timer
|
||||
|
||||
### ✅ Summary
|
||||
echo ""
|
||||
echo "✅ Setup complete."
|
||||
echo ""
|
||||
echo "🖱 You can start Darktable via 'Darktable with Sync' in your application menu."
|
||||
echo "🕒 Sync will run every 5 minutes automatically when the Server is online."
|
||||
# echo "🕒 Sync will run every 5 minutes automatically when the Server is online."
|
||||
|
||||
Reference in New Issue
Block a user