Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions build/fpm-piler-after-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ if [[ $(pgrep -c systemd) -gt 0 && -x /bin/systemctl ]]; then
systemctl daemon-reload
fi

for i in piler piler-smtp pilersearch tika; do
if [[ -f "/lib/systemd/system/${i}.service" ]]; then
/usr/bin/systemctl enable --now "${i}.service"
fi
done

if [[ -f /var/piler/www/config.php ]]; then
PILER_VERSION="$( piler -v )"
for f in /var/piler/www/config.php /var/piler/www/vue/Footer.vue; do
Expand Down
12 changes: 12 additions & 0 deletions util/postinstall.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,17 @@ webui_install() {
}


restart_services() {
echo; echo "Restarting services."; echo

for i in piler piler-smtp pilersearch tika; do
if [[ -f "/lib/systemd/system/${i}.service" ]]; then
/usr/bin/systemctl restart "${i}.service"
fi
done
}


clean_up_temp_stuff() {
rm -f "$CRON_TMP"

Expand All @@ -485,5 +496,6 @@ make_new_key
show_summary

execute_post_install_tasks
restart_services

clean_up_temp_stuff
Loading