diff options
author | yjun | 2020-11-26 19:53:33 +0800 |
---|---|---|
committer | yjun | 2020-11-26 19:53:33 +0800 |
commit | 441e0f68951340752dbb9ee4c8c8c19a4eff6525 (patch) | |
tree | f6285070f581b2c9394ac3c5abd583849ba8ddd3 /sunloginclient.install | |
parent | 56232e06e2921e7155126a81286b18ed6cb5de14 (diff) | |
download | aur-441e0f68951340752dbb9ee4c8c8c19a4eff6525.tar.gz |
rename .INSTALL to sunloginclient.install
Diffstat (limited to 'sunloginclient.install')
-rw-r--r-- | sunloginclient.install | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/sunloginclient.install b/sunloginclient.install new file mode 100644 index 000000000000..9720cd9f8a88 --- /dev/null +++ b/sunloginclient.install @@ -0,0 +1,26 @@ +#!/bin/sh + +post_install() { + if systemctl -q is-active runsunloginclient.service ;then + systemctl restart runsunloginclient.service + fi + + ECHOLEN=$(echo -e|awk '{print length($0)}') + if [ ${ECHOLEN} = '0' ] + then + ECHO='echo -e' + else + ECHO='echo' + fi + + $ECHO "\033[36m*************************************************************************\033[0m" + $ECHO "\033[36m* sunlogin daemon service must be running for sunloginclient to work *\033[0m" + $ECHO "\033[36m* Type: systemctl start runsunloginclient *\033[0m" + $ECHO "\033[36m*************************************************************************\033[0m" +} + +post_upgrade() { + post_install +} + +# vim: ts=2 sw=2 et: |