Skip to content

Commit

Permalink
ncp-update-nc: fix unnecessary quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Jan 26, 2019
1 parent ffc1fa5 commit 338da33
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/ncp-update-nc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ VER="$1"

# pre-checks
####################
[[ -f /.docker-image ]] && BASEDIR=/data || BASEDIR=/var/www/
[[ -f /.docker-image ]] && BASEDIR=/data || BASEDIR=/var/www
cd "$BASEDIR"
DATADIR="$( grep datadirectory nextcloud/config/config.php | awk '{ print $3 }' | grep -oP "[^']*[^']" | head -1 )"
[[ -d /var/www/nextcloud-old ]] && { echo "Nextcloud backup directory found. Interrupted installation?"; exit 1; }
Expand Down Expand Up @@ -145,7 +145,7 @@ done

# copy data if it was at the default location
####################
[[ "$DATADIR" == ""$BASEDIR"/nextcloud/data" ]] && {
[[ "$DATADIR" == "$BASEDIR/nextcloud/data" ]] && {
echo "Restore data..."
mv -T nextcloud-old/data nextcloud/data
}
Expand Down
6 changes: 4 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@

[v1.4.7](https://github.com/nextcloud/nextcloudpi/commit/5d6dd2e) (2019-01-25) ncp-config: fix local variables
[v1.4.8](https://github.com/nextcloud/nextcloudpi/commit/ea9a1ea) (2019-01-26) ncp-update-nc: fix unnecessary quotes

[v1.4.6](https://github.com/nextcloud/nextcloudpi/commit/b338ede) (2019-01-24) ncp-config: fix missing variable
[v1.4.7](https://github.com/nextcloud/nextcloudpi/commit/ffc1fa5) (2019-01-25) ncp-config: fix local variables

[v1.4.6 ](https://github.com/nextcloud/nextcloudpi/commit/b338ede) (2019-01-24) ncp-config: fix missing variable

[v1.4.5 ](https://github.com/nextcloud/nextcloudpi/commit/b7efa7a) (2019-01-22) armbian: fix cron permissions bug (2)

Expand Down

0 comments on commit 338da33

Please sign in to comment.