diff options
author | Onishin | 2016-07-30 14:29:41 +0200 |
---|---|---|
committer | Onishin | 2016-07-30 14:29:41 +0200 |
commit | 49946719bb09971a07a230bb4749ebeb16c7007f (patch) | |
tree | 97c722779d6dcaf9c8aa5668cca262df2ef71e6a /bitmonero.install | |
parent | 90231588661803bfeeba56f8e0cf05887daefe0d (diff) | |
download | aur-49946719bb09971a07a230bb4749ebeb16c7007f.tar.gz |
Add create user on upgrade information
Diffstat (limited to 'bitmonero.install')
-rw-r--r-- | bitmonero.install | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bitmonero.install b/bitmonero.install index 225655e5b189..b3e84e5a14e6 100644 --- a/bitmonero.install +++ b/bitmonero.install @@ -9,6 +9,17 @@ post_install() { } post_upgrade() { + + #Need for upgrade for user old version not execute post_install + getent passwd bitmonero &>/dev/null || { + echo -n ">>> Creating bitmonero user... " + useradd --system --user-group -m --home /var/lib/bitmonero bitmonero + echo "done" + } # NOTE: we do not autoremove user due to security concerns (Arch policy) + + mkdir -p /var/log/bitmonero && chown bitmonero:bitmonero /var/log/bitmonero + + echo ">>> NOTICE: Package changed location of bitmonero data dir." echo ">>> Please move your bitmonero data dir to new location " echo ">>> before starting daemon systemd service:" |