blob: 4951b3ed2af14f57e57a3df9a38fe0f4bb5025c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
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
}
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:"
echo ">>> sudo mv ~USER/.bitmonero/* /var/lib/bitmonero/"
echo ">>> sudo chown -R bitmonero:bitmonero /var/lib/bitmonero/"
}
|