diff options
author | Danilo Bargen | 2021-12-06 12:29:05 +0100 |
---|---|---|
committer | Danilo Bargen | 2021-12-06 12:29:05 +0100 |
commit | cce65be600669684d0360b0eadd16bc18e69dc2b (patch) | |
tree | a1da1b1639156e3caf726d62a7269707f6de6ff9 /tezos-serokell.install | |
download | aur-tezos-serokell.tar.gz |
Initial commit
Diffstat (limited to 'tezos-serokell.install')
-rw-r--r-- | tezos-serokell.install | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tezos-serokell.install b/tezos-serokell.install new file mode 100644 index 000000000000..8ac35344a82b --- /dev/null +++ b/tezos-serokell.install @@ -0,0 +1,21 @@ +post_upgrade() { + if [ ! -d "/usr/share/tezos" ]; then + echo "Creating directory /usr/share/tezos..." + mkdir -p -m755 /usr/share/tezos + chown tezos:tezos /usr/share/tezos + fi + if [ ! -f "/usr/share/tezos/.tezos-node/identity.json" ]; then + echo -e "To create a tezos node identity, run\n" + echo -e " $ sudo -u tezos tezos-node identity generate\n" + else + echo "" + fi + echo -e "To start the tezos node on localhost, run\n" + echo -e " $ sudo systemctl start tezos-node\n" + echo -e "To automatically start it on system start:\n" + echo -e " $ sudo systemctl enable tezos-node\n" +} + +post_install() { + post_upgrade +} |