diff options
author | Gaming4JC <g4jc@openmailbox.org> | 2016-09-29 21:32:09 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@openmailbox.org> | 2016-09-29 21:32:09 -0400 |
commit | 9bb86311cb1c137b8404386859b4b330ee558da4 (patch) | |
tree | 1c5c57619e0eab8c84305cbf6d8f85e8a632456b /pcr/yacy/yacy.install | |
parent | c04859423c562dacc6d5a3abceaa53980991538d (diff) |
upgrade yacy
Diffstat (limited to 'pcr/yacy/yacy.install')
-rw-r--r-- | pcr/yacy/yacy.install | 7 |
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 |