diff options
author | thaissiqueira <thais.siqueira@thoughtworks.com> | 2017-01-30 15:11:07 -0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-30 15:11:07 -0200 |
commit | ece5e033d89ad15e06ebc29391a67c4f55a7ba2f (patch) | |
tree | 9c678f03d4d07feded6b51eab74bdc0b50319bf8 | |
parent | d9e9c8cd0c47ceb1883e7215dfcea055be391d96 (diff) | |
parent | c51525351a5ce54e9ff7ee83d8f02d71cbc20151 (diff) |
Merge pull request #949 from pixelated/restart-pixelated
Adds postinstall scritp to restart pixelated-server
-rw-r--r-- | debian/pixelated-user-agent.postinst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/debian/pixelated-user-agent.postinst b/debian/pixelated-user-agent.postinst new file mode 100644 index 00000000..729f46ac --- /dev/null +++ b/debian/pixelated-user-agent.postinst @@ -0,0 +1,7 @@ +#!/bin/sh + +export PATH=/bin:/usr/bin:/sbin:/usr/sbin + +if [ -d /run/systemd/system ]; then + systemctl -q is-active pixelated-server.service && systemctl restart pixelated-server.service +fi |