diff options
author | Jan Vanmullem | 2015-09-21 23:10:04 +0200 |
---|---|---|
committer | Jan Vanmullem | 2015-09-21 23:10:04 +0200 |
commit | 6cca34ad382907ce1143cf93a49ed4cff4f98fd7 (patch) | |
tree | 9f0fe654bc80d063e63857db86c0e11e2a4b1bf4 /apt-dater.install | |
download | aur-6cca34ad382907ce1143cf93a49ed4cff4f98fd7.tar.gz |
added pkgbuild and install script for v1.2.0
Diffstat (limited to 'apt-dater.install')
-rw-r--r-- | apt-dater.install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/apt-dater.install b/apt-dater.install new file mode 100644 index 000000000000..04f3b60c8352 --- /dev/null +++ b/apt-dater.install @@ -0,0 +1,20 @@ +APT_DATER_GROUP=apt-dater + +post_install() { + getent group $APT_DATER_GROUP >/dev/null 2>&1 || groupadd --system apt-dater + + chown :$APT_DATER_GROUP /etc/apt-dater /etc/apt-dater/ssh + + for d in /var/cache/apt-dater/stats /var/cache/apt-dater/tmux /var/lib/apt-dater/history; do + chown :$APT_DATER_GROUP "$d" + chmod 02770 "$d" + done + + echo " ==> Group '$APT_DATER_GROUP' created." + echo " ==> Add your user to the '$APT_DATER_GROUP' group." +} + +post_remove() { + groupdel $APT_DATER_GROUP || true + echo " ==> Group '$APT_DATER_GROUP' removed." +} |