Skip to content

Commit

Permalink
fix occ command without execute permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Dec 14, 2017
1 parent 3f09cd5 commit 4b07f0b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/ncp-diag
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ echo "datadir|$DATADIR$DIRINFO"
echo "rootfs usage|$( df -h / | tail -1 | awk '{ print $3"/"$2 }')"

# Nextcloud
VERSION="$( sudo -u www-data /var/www/nextcloud/occ status | grep "version:" | awk '{ print $3 }' )"
VERSION="$( sudo -u www-data php /var/www/nextcloud/occ status | grep "version:" | awk '{ print $3 }' )"
if [[ "$VERSION" != "" ]]; then
echo "Nextcloud check|ok"
echo "Nextcloud version|$VERSION"
Expand Down
2 changes: 1 addition & 1 deletion bin/ncp-report
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ close_summary
##

open_summary "Nextcloud configuration"
sudo -u www-data /var/www/nextcloud/occ config:list system
sudo -u www-data php /var/www/nextcloud/occ config:list system
close_summary

##
Expand Down
2 changes: 1 addition & 1 deletion etc/nextcloudpi-config.d/fail2ban.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ configure()
}

local NCLOG="/var/www/nextcloud/data/nextcloud.log"
local NCLOG1="$( sudo -u www-data /var/www/nextcloud/occ config:system:get logfile )"
local NCLOG1="$( sudo -u www-data php /var/www/nextcloud/occ config:system:get logfile )"

[[ "$NCLOG1" != "" ]] && NCLOG="$NCLOG1"

Expand Down
2 changes: 1 addition & 1 deletion etc/nextcloudpi-config.d/samba.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ configure()
# CHECKS
################################
local DATADIR
DATADIR=$( sudo -u www-data /var/www/nextcloud/occ config:system:get datadirectory ) || {
DATADIR=$( sudo -u www-data php /var/www/nextcloud/occ config:system:get datadirectory ) || {
echo -e "Error reading data directory. Is NextCloud running and configured?";
return 1;
}
Expand Down

0 comments on commit 4b07f0b

Please sign in to comment.