summaryrefslogtreecommitdiff
path: root/pcr/yacy/yacy.install
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/yacy/yacy.install')
-rw-r--r--pcr/yacy/yacy.install7
1 files changed, 3 insertions, 4 deletions
diff --git a/pcr/yacy/yacy.install b/pcr/yacy/yacy.install
index dbd350d17..a8a964488 100644
--- a/pcr/yacy/yacy.install
+++ b/pcr/yacy/yacy.install
@@ -1,8 +1,7 @@
-post_install() {
- echo
+post_install() { echo
echo -n ">>> Creating yacy system user and group... "
getent group yacy &>/dev/null || groupadd -r yacy
- getent passwd yacy &>/dev/null || /usr/sbin/useradd --comment 'YaCy P2P Searchengine' --system -g yacy --home '/usr/share/yacy/' -s /bin/false yacy
+ getent passwd yacy &>/dev/null || /usr/bin/useradd --comment 'YaCy P2P Searchengine' --system -g yacy --home '/usr/share/yacy/' -s /bin/false yacy
mkdir -p /var/lib/yacy
chown -R yacy:yacy /var/lib/yacy /opt/yacy
rm -f /usr/share/yacy/DATA
@@ -20,7 +19,7 @@ pre_remove() {
echo
echo -n ">>> Removing yacy system user and group... "
getent passwd yacy &>/dev/null &&
- /usr/sbin/userdel yacy &>/dev/null
+ /usr/bin/userdel yacy &>/dev/null
getent group yacy &>/dev/null &&
groupdel yacy &>/dev/null
rm -f /usr/share/yacy/DATA