From 92cfed6443b95fdda02ebd47dd1426b0b6effeae Mon Sep 17 00:00:00 2001 From: Ark74 Date: Sat, 11 Apr 2020 14:17:42 -0500 Subject: [PATCH] Fix path and file name --- jra_nextcloud.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/jra_nextcloud.sh b/jra_nextcloud.sh index 01e9cb8..17faa70 100644 --- a/jra_nextcloud.sh +++ b/jra_nextcloud.sh @@ -324,7 +324,7 @@ chmod -R 755 $NC_PATH if $(dpkg --compare-versions "$NCVERSION" "le" "18.0.3"); then echo " -> Patching #425 (scssphp/src/Compiler.php)..." -sudo -u www-data patch -d "$NC_PATH/3rdparty/leafo/scssphp/src/" -p0 < files/patch_425_3dty.patch +sudo -u www-data patch -d "$NC_PATH/3rdparty/leafo/scssphp/src/" -p0 < $PWD/files/patch_425_3dty.patch fi echo " @@ -349,9 +349,9 @@ sed -i "s|http://localhost|http://$NC_DOMAIN|" $NC_CONFIG echo " Addding & Setting up Files External App for Local storage... " -sudo -u www-data php occ app:install files_external -sudo -u www-data php occ app:enable files_external -sudo -u www-data php $NC_PATH/occ files_external:import files/jb-qnci-ef.json +sudo -u www-data php $NC_PATH/occ app:install files_external +sudo -u www-data php $NC_PATH/occ app:enable files_external +sudo -u www-data php $NC_PATH/occ files_external:import $PWD/files/jra-nc-app-ef.json usermod -a -G jibri www-data chown -R jibri:www-data $DIR_RECORD @@ -361,12 +361,12 @@ chmod -R g+s $DIR_RECORD echo " Fixing possible missing tables... " -echo "y"|sudo -u www-data php occ db:convert-filecache-bigint -sudo -u www-data php occ db:add-missing-indices +echo "y"|sudo -u www-data php $NC_PATH/occ db:convert-filecache-bigint +sudo -u www-data php $NC_PATH/occ db:add-missing-indices echo " Adding trusted domain... " -sudo -u www-data php occ config:system:set trusted_domains 0 --value=$NC_DOMAIN +sudo -u www-data php $NC_PATH/occ config:system:set trusted_domains 0 --value=$NC_DOMAIN echo "Quick Nextcloud installation complete!"