File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ DATADIR="$( grep datadirectory nextcloud/config/config.php | awk '{ print $3 }'
3333[[ -d /var/www/nextcloud-old ]] && { echo " Nextcloud backup directory found. Interrupted or already running installation?" ; exit 1; }
3434[[ -d /var/www/nextcloud ]] || { echo " Nextcloud directory not found" ; exit 1; }
3535[[ -d " $DATADIR " ]] || { echo " Nextcloud data directory not found" ; exit 1; }
36- [[ " $ ( stat -fc%T " $BASEDIR " ) " == " btrfs " ]] && { echo " BTRFS not supported" ; exit 1; }
36+ grep -q " btrfs " < ( stat -fc%T " $BASEDIR " ) && { echo " BTRFS not supported" ; exit 1; }
3737
3838# check version
3939# ###################
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ if [[ $( ls "$TMPDIR" | wc -l ) -eq $NUMFILES ]]; then
111111 echo "restore datadir to $DATADIR..."
112112
113113 mkdir -p "$DATADIR"
114- [[ "$( stat -fc%T "$DATADIR" )" == "btrfs" ]] && which btrfs &>/dev/null && {
114+ grep -q "btrfs" <( stat -fc%T "$DATADIR") && which btrfs &>/dev/null && {
115115 rmdir "$DATADIR" || exit 1
116116 btrfs subvolume create "$DATADIR" || exit 1
117117 }
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ source /usr/local/etc/library.sh # sets NCLATESTVER PHPVER RELEASE
88
99# all images
1010
11+ install_app nc-restore
12+
1113# docker images only
1214[[ -f /.docker-image ]] && {
1315 :
You can’t perform that action at this time.
0 commit comments