diff options
author | Mika Hyttinen | 2024-01-06 12:53:58 +0200 |
---|---|---|
committer | Mika Hyttinen | 2024-01-06 12:53:58 +0200 |
commit | b1a87a9e69fb98a4d5b563fea79a7c6f06933f45 (patch) | |
tree | 8c70110b810357729983f2ea429375d6e9963ad7 /cellframe-dashboard.install | |
parent | 608025c61a4bede1ff4834181a94ca259405bce3 (diff) | |
download | aur-b1a87a9e69fb98a4d5b563fea79a7c6f06933f45.tar.gz |
Add new files for more aggressive log rotation (enable with systemctl enable --now cellframe-node-logrotate.timer). Modify cellframe-node service to disable stdout to journal.
Diffstat (limited to 'cellframe-dashboard.install')
-rw-r--r-- | cellframe-dashboard.install | 52 |
1 files changed, 30 insertions, 22 deletions
diff --git a/cellframe-dashboard.install b/cellframe-dashboard.install index 0528cf3826c8..034207ec5ad0 100644 --- a/cellframe-dashboard.install +++ b/cellframe-dashboard.install @@ -1,3 +1,31 @@ +_showmsg() { + cat << EOF + + ######################################################################## + ######################################################################## + ## ## + ## Cellframe Dashboard - The super application with Cellframe node ## + ## ______________________________________________________________ ## + ## ## + ## To start: ## + ## ## + ## 1. systemctl enable --now cellframe-node.service ## + ## ## + ## 2. systemctl enable --now cellframe-dashboard.service ## + ## ## + ## 3. Launch Cellframe Dashboard from your applications ## + ## ## + ## OPTIONAL: ## + ## systemctl enable --now cellframe-node-logrotate.service ## + ## ## + ## For more aggressive log rotating ## + ## ## + ######################################################################## + ######################################################################## + +EOF +} + post_install() { NODE_PATH="/opt/cellframe-node" DASHBOARD_PATH="/opt/cellframe-dashboard" @@ -38,28 +66,7 @@ post_install() { mkdir -p $NODE_PATH/var/{run,lib/wallet,lib/global_db,lib/plugins,log} mkdir -p $DASHBOARD_PATH/dapps/download && chmod -R 0777 $DASHBOARD_PATH/dapps - cat << EOF - - ######################################################################## - ######################################################################## - ## ## - ## Cellframe Dashboard - The super application with Cellframe node ## - ## ______________________________________________________________ ## - ## ## - ## To start: ## - ## ## - ## 1. systemctl enable --now cellframe-node.service ## - ## ## - ## 1. systemctl enable --now cellframe-dashboard.service ## - ## ## - ## 2. Launch Cellframe Dashboard from your applications ## - ## ## - ## ## - ######################################################################## - ######################################################################## - -EOF - + _showmsg } pre_upgrade() { @@ -75,6 +82,7 @@ post_upgrade() { do systemctl is-enabled --quiet $_active.service && systemctl start $_active.service && echo "+++ Started $_active service..." done + _showmsg } pre_remove() { |