Skip to content

Commit

Permalink
ncp-report: fix root execution
Browse files Browse the repository at this point in the history
  • Loading branch information
nacho committed Apr 20, 2018
1 parent 79529c7 commit 344f184
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bin/ncp-diag
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ SWP="$( swapon | tail -1 | awk '{ print $1 }' )"
echo "swapfile|$SWP"

# Nextcloud
VERSION="$( php /var/www/nextcloud/occ status | grep "version:" | awk '{ print $3 }' )"
[[ ${EUID} -eq 0 ]] && SUDO="sudo -u www-data"
VERSION="$( $SUDO php /var/www/nextcloud/occ status | grep "version:" | awk '{ print $3 }' )"
if [[ "$VERSION" != "" ]]; then
echo "Nextcloud check|ok"
echo "Nextcloud version|$VERSION"
Expand Down
4 changes: 3 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

[v0.53.29](https://github.com/nextcloud/nextcloudpi/commit/dc1289f) (2018-04-05) renamed to NextCloudPlus
[v0.53.30](https://github.com/nextcloud/nextcloudpi/commit/63f22a2) (2018-04-20) ncp-report: fix root execution

[v0.53.29](https://github.com/nextcloud/nextcloudpi/commit/79529c7) (2018-04-05) renamed to NextCloudPlus

[v0.53.28](https://github.com/nextcloud/nextcloudpi/commit/ab913c2) (2018-04-18) ncp-web: added spanish translations

Expand Down

0 comments on commit 344f184

Please sign in to comment.