diff options
author | Fredy García | 2022-02-08 20:15:09 -0500 |
---|---|---|
committer | Fredy García | 2022-02-08 20:31:48 -0500 |
commit | ca39f08cbba957842f0c0be4b4ad6e9909a35c30 (patch) | |
tree | fb38e6d75c338b783e5bd00379baddd81e40c66d /appgate-sdp-headless.install | |
parent | 173eb0894301177b4668ed82e4c04eb70040975f (diff) | |
download | aur-ca39f08cbba957842f0c0be4b4ad6e9909a35c30.tar.gz |
Adjusting service files. Adding install file to install appgate user/group. Moving dnsmasq to optdepends. Upgrading to version 5.5.3
Diffstat (limited to 'appgate-sdp-headless.install')
-rw-r--r-- | appgate-sdp-headless.install | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/appgate-sdp-headless.install b/appgate-sdp-headless.install new file mode 100644 index 000000000000..42114a15cd84 --- /dev/null +++ b/appgate-sdp-headless.install @@ -0,0 +1,18 @@ +post_install() { + # Creates appgate user and group + [[ $(cat /etc/group) == *appgate* ]] || groupadd --system appgate + [[ $(cat /etc/passwd) == *appgate* ]] || useradd --system --shell /usr/bin/nologin --home /var/lib/appgate --gid appgate appgate + chown appgate:appgate /etc/appgate.conf + chmod 660 /etc/appgate.conf + install -d /var/lib/appgate -g appgate -o appgate -m770 +} + +post_upgrade() { + post_install +} + +post_remove() { + # Removes appgate user and group + groupdel --force appgate + userdel --force --remove appgate +} |