blob: 29fd0bb7e89d55f5f1bb6932d0205ba4738f6578 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# Create the user and group if they don't exist
post_install() {
if ! getent group aursec >/dev/null; then
groupadd --system aursec
fi
if ! getent passwd aursec >/dev/null; then
useradd --system -c 'aursec daemon user' -g aursec -d /var/aursec/ -s /bin/bash aursec
fi
echo "==> Please run 'aursec-init' and start and enable
aursec-blockchain.service
aursec-blockchain-mine.timer
before using aursec."
}
post_upgrade() {
post_install $1
}
|