Skip to content

Commit

Permalink
nc-ramlogs: fix enabled by default upon installoation
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Mar 18, 2018
1 parent 1e12154 commit 1830d77
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@

[v0.53.3](https://github.com/nextcloud/nextcloudpi/commit/ad4686d) (2018-03-17) docker: fix development container script folder
[v0.53.4](https://github.com/nextcloud/nextcloudpi/commit/2e5443e) (2018-03-18) nc-ramlogs: fix enabled by default upon installoation

[v0.53.2 ](https://github.com/nextcloud/nextcloudpi/commit/96fa0f5) (2018-03-17) letsencrypt: remove .well-known dir after renewal
[v0.53.3 ](https://github.com/nextcloud/nextcloudpi/commit/2f7aa40) (2018-03-17) docker: fix development container script folder

[v0.53.2 ](https://github.com/nextcloud/nextcloudpi/commit/a72190a) (2018-03-17) letsencrypt: remove .well-known dir after renewal

[v0.53.1 ](https://github.com/nextcloud/nextcloudpi/commit/d8ad80c) (2018-03-17) fix web update to NC13.0.1 with .well-known existence

Expand Down
1 change: 1 addition & 0 deletions etc/nextcloudpi-config.d/nc-ramlogs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ install()
curl -Lo log2ram.tar.gz https://github.com/azlux/log2ram/archive/master.tar.gz
tar xf log2ram.tar.gz
cd log2ram-master
sed -i '/systemctl enable log2ram/d' install.sh
chmod +x install.sh && sudo ./install.sh
cd ..
rm -r log2ram-master log2ram.tar.gz
Expand Down
5 changes: 5 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,11 @@ EOF
chmod +x /etc/cron.weekly/letsencrypt-ncp
}

# disable ramlogs if accidentally enabled
grep -q '^ACTIVE_=yes$' "$CONFDIR"/nc-ramlogs.sh || {
systemctl disable log2ram
systemctl stop log2ram
}
} # end - only live updates

exit 0
Expand Down

0 comments on commit 1830d77

Please sign in to comment.