Skip to content

Commit

Permalink
Update auto-update-cron.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
0mniteck authored Sep 5, 2024
1 parent bc08af6 commit 0ac0180
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions auto-update-cron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,10 @@ else
echo "Signal Desktop is already up to date (version $current_version)"
fi

# Define the cron job command
cron_job="0 2 * * * root /usr/bin/sd-updater"

# Check if the cron job already exists
if [ ! -f /etc/cron.d/sd-updater ]; then
cat $cron_job > /etc/cron.d/sd-updater
echo "Cron job added: $cron_job"
cat "0 2 * * * root /usr/bin/sd-updater" > /etc/cron.d/sd-updater
echo "Cron job added."
else
echo "Cron job already exists."
fi

0 comments on commit 0ac0180

Please sign in to comment.