aboutsummaryrefslogtreecommitdiffstats
path: root/main/zsh
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2015-08-08 11:42:37 +0200
committerFrancesco Colista <fcolista@alpinelinux.org>2015-08-10 12:59:47 +0000
commit842e258a6130f64204f20ca8172946f5f26fa1e2 (patch)
treea4be84387d48321a6839500dd175730fef53765d /main/zsh
parentd41d42a58e22c676a93447f8eb806f21bb51c529 (diff)
downloadaports-842e258a6130f64204f20ca8172946f5f26fa1e2.tar.bz2
aports-842e258a6130f64204f20ca8172946f5f26fa1e2.tar.xz
main/zsh: simplify install files
No version bump necessary.
Diffstat (limited to 'main/zsh')
-rw-r--r--main/zsh/zsh.post-install2
l---------[-rw-r--r--]main/zsh/zsh.post-upgrade4
-rw-r--r--main/zsh/zsh.pre-deinstall2
3 files changed, 3 insertions, 5 deletions
diff --git a/main/zsh/zsh.post-install b/main/zsh/zsh.post-install
index 46506fbee0..d2399cd8b9 100644
--- a/main/zsh/zsh.post-install
+++ b/main/zsh/zsh.post-install
@@ -1,3 +1,3 @@
#!/bin/sh
-grep -q '/bin/zsh' /etc/shells || echo '/bin/zsh' >> /etc/shells
+add-shell '/bin/zsh'
exit 0
diff --git a/main/zsh/zsh.post-upgrade b/main/zsh/zsh.post-upgrade
index 46506fbee0..fe3999fdbc 100644..120000
--- a/main/zsh/zsh.post-upgrade
+++ b/main/zsh/zsh.post-upgrade
@@ -1,3 +1 @@
-#!/bin/sh
-grep -q '/bin/zsh' /etc/shells || echo '/bin/zsh' >> /etc/shells
-exit 0
+zsh.post-install \ No newline at end of file
diff --git a/main/zsh/zsh.pre-deinstall b/main/zsh/zsh.pre-deinstall
index bd078e838c..215f9a2e8f 100644
--- a/main/zsh/zsh.pre-deinstall
+++ b/main/zsh/zsh.pre-deinstall
@@ -1,3 +1,3 @@
#!/bin/sh
-sed -i '/^\/bin\/zsh/d' /etc/shells
+remove-shell '/bin/zsh'
exit 0