Skip to content

Commit

Permalink
More install fixes, correct nasajobsbot.timer
Browse files Browse the repository at this point in the history
  • Loading branch information
dkozinn committed Dec 16, 2023
1 parent ee8a8da commit a842de6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,16 @@ for service in $(cat services)
do
export service
sudo -E bash -c "sed 's@USER@$user@;s@HOME@$user@' $service.service > $SYSTEM/$service.service"
sudo -E bash -c "[[ -f $service.timer ]] && cp $service.timer $SYSTEM"
sudo -E cp src/$service.py $BIN
[[ -f $service.timer ]] && sudo cp $service.timer $SYSTEM
sudo cp src/$service.py $BIN
done

sudo -E bash -c "cp nasabot.logrotate $LOGDIR"
sudo cp nasabot.logrotate $LOGDIR

sudo $SYSTEMCTL daemon-reload
for service in $(cat services)
do
[[ -f $service.timer ]] && service = $service.timer
sudo $SYSTEMCTL enable $service
sudo $SYSTEMCTL restart $service
done
Expand Down
2 changes: 1 addition & 1 deletion nasajobsbot.timer
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Requires=nasajobsbot.service

[Timer]
Unit=nasajobsbot.service
OnCalendar=* *-*-* 06:00:00
OnCalendar=*-*-* 06:00:00

[Install]
WantedBy=timers.target

0 comments on commit a842de6

Please sign in to comment.