This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
fedibot [2025/02/13 16:30] – Yuki | fedibot [2025/02/13 16:37] (current) – Yuki | ||
---|---|---|---|
Line 9: | Line 9: | ||
===== 2. Write the shell script ===== | ===== 2. Write the shell script ===== | ||
- | Create an account to the desired instance, then login to that account with toot. | + | Create an account to the desired instance, then login to that account with toot. Make sure you do this with the user account the cron job is going to run as. |
<code bash ~/ | <code bash ~/ | ||
Line 26: | Line 26: | ||
[Service] | [Service] | ||
Type=oneshot | Type=oneshot | ||
- | ExecStart=/ | + | ExecStart=/ |
- | User=juju | + | User=yuki |
</ | </ | ||
+ | |||
+ | Make sure to point '' | ||
<code ini / | <code ini / | ||
Line 40: | Line 42: | ||
WantedBy=timers.target | WantedBy=timers.target | ||
</ | </ | ||
+ | |||
+ | The .timer file should have the same file name as the corresponding .service. | ||
Enable the timer: | Enable the timer: |