diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-02-18 16:15:26 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-02-18 16:15:26 -0500 |
commit | 318445114d9126ef0290e5ffea2777687a3ee316 (patch) | |
tree | 8d3ccc27b16ed56bb54777b9dbb33bb3cdb2ea00 /modules/ttrss | |
parent | a7b3ddfd46633532a53ccc2d588853e198649524 (diff) | |
download | puppet-tozt-318445114d9126ef0290e5ffea2777687a3ee316.tar.gz puppet-tozt-318445114d9126ef0290e5ffea2777687a3ee316.zip |
stop the ttrss update daemon before applying database updates
Diffstat (limited to 'modules/ttrss')
-rw-r--r-- | modules/ttrss/files/pacman-hook | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ttrss/files/pacman-hook b/modules/ttrss/files/pacman-hook index f9cf938..b6f92f9 100644 --- a/modules/ttrss/files/pacman-hook +++ b/modules/ttrss/files/pacman-hook @@ -7,4 +7,4 @@ Target = tt-rss [Action] Description = Updating TT-RSS Database When = PostTransaction -Exec = /usr/bin/runuser -u http -- /usr/bin/php /usr/share/webapps/tt-rss/update.php --update-schema +Exec = sh -c "systemctl stop tt-rss && /usr/bin/runuser -u http -- /usr/bin/php /usr/share/webapps/tt-rss/update.php --update-schema && systemctl start tt-rss" |